From 1ce8e37b94ad90da0867b6beebaee9c2c47a1159 Mon Sep 17 00:00:00 2001 From: aram price Date: Fri, 27 Dec 2024 10:30:39 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20update=20vendor/=20contents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bosh-dns/vendor/golang.org/x/net/html/doctype.go | 2 +- src/bosh-dns/vendor/golang.org/x/net/html/foreign.go | 3 +-- src/bosh-dns/vendor/golang.org/x/net/html/parse.go | 8 ++++++-- src/bosh-dns/vendor/modules.txt | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/bosh-dns/vendor/golang.org/x/net/html/doctype.go b/src/bosh-dns/vendor/golang.org/x/net/html/doctype.go index c484e5a94..bca3ae9a0 100644 --- a/src/bosh-dns/vendor/golang.org/x/net/html/doctype.go +++ b/src/bosh-dns/vendor/golang.org/x/net/html/doctype.go @@ -87,7 +87,7 @@ func parseDoctype(s string) (n *Node, quirks bool) { } } if lastAttr := n.Attr[len(n.Attr)-1]; lastAttr.Key == "system" && - strings.ToLower(lastAttr.Val) == "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd" { + strings.EqualFold(lastAttr.Val, "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd") { quirks = true } } diff --git a/src/bosh-dns/vendor/golang.org/x/net/html/foreign.go b/src/bosh-dns/vendor/golang.org/x/net/html/foreign.go index 9da9e9dc4..e8515d8e8 100644 --- a/src/bosh-dns/vendor/golang.org/x/net/html/foreign.go +++ b/src/bosh-dns/vendor/golang.org/x/net/html/foreign.go @@ -40,8 +40,7 @@ func htmlIntegrationPoint(n *Node) bool { if n.Data == "annotation-xml" { for _, a := range n.Attr { if a.Key == "encoding" { - val := strings.ToLower(a.Val) - if val == "text/html" || val == "application/xhtml+xml" { + if strings.EqualFold(a.Val, "text/html") || strings.EqualFold(a.Val, "application/xhtml+xml") { return true } } diff --git a/src/bosh-dns/vendor/golang.org/x/net/html/parse.go b/src/bosh-dns/vendor/golang.org/x/net/html/parse.go index 46a89eda6..643c674e3 100644 --- a/src/bosh-dns/vendor/golang.org/x/net/html/parse.go +++ b/src/bosh-dns/vendor/golang.org/x/net/html/parse.go @@ -840,6 +840,10 @@ func afterHeadIM(p *parser) bool { p.parseImpliedToken(StartTagToken, a.Body, a.Body.String()) p.framesetOK = true + if p.tok.Type == ErrorToken { + // Stop parsing. + return true + } return false } @@ -1031,7 +1035,7 @@ func inBodyIM(p *parser) bool { if p.tok.DataAtom == a.Input { for _, t := range p.tok.Attr { if t.Key == "type" { - if strings.ToLower(t.Val) == "hidden" { + if strings.EqualFold(t.Val, "hidden") { // Skip setting framesetOK = false return true } @@ -1459,7 +1463,7 @@ func inTableIM(p *parser) bool { return inHeadIM(p) case a.Input: for _, t := range p.tok.Attr { - if t.Key == "type" && strings.ToLower(t.Val) == "hidden" { + if t.Key == "type" && strings.EqualFold(t.Val, "hidden") { p.addElement() p.oe.pop() return true diff --git a/src/bosh-dns/vendor/modules.txt b/src/bosh-dns/vendor/modules.txt index 1835a1085..624d54b99 100644 --- a/src/bosh-dns/vendor/modules.txt +++ b/src/bosh-dns/vendor/modules.txt @@ -249,7 +249,7 @@ golang.org/x/mod/internal/lazyregexp golang.org/x/mod/modfile golang.org/x/mod/module golang.org/x/mod/semver -# golang.org/x/net v0.32.0 +# golang.org/x/net v0.33.0 ## explicit; go 1.18 golang.org/x/net/bpf golang.org/x/net/context