Update vendor files to fix build failure

Signed-off-by: Chifeng Cai <frcai@microsoft.com>
This commit is contained in:
Chifeng Cai
2025-02-13 17:06:05 -08:00
parent d3437eb291
commit fcf64305ce
13 changed files with 497 additions and 113 deletions

View File

@@ -78,16 +78,11 @@ example, to process each anchor node in depth-first order:
if err != nil {
// ...
}
var f func(*html.Node)
f = func(n *html.Node) {
for n := range doc.Descendants() {
if n.Type == html.ElementNode && n.Data == "a" {
// Do something with n...
}
for c := n.FirstChild; c != nil; c = c.NextSibling {
f(c)
}
}
f(doc)
The relevant specifications include:
https://html.spec.whatwg.org/multipage/syntax.html and