diff options
author | renovate <renovate-bot@autistici.org> | 2021-07-11 14:26:26 +0000 |
---|---|---|
committer | renovate <renovate-bot@autistici.org> | 2021-07-11 14:26:26 +0000 |
commit | 557f9d889812976293b4a668c190e0e1e0332857 (patch) | |
tree | 9d2e82374a063f3b568110e83ccb1b285f3247f1 /vendor/golang.org/x/net/html/render.go | |
parent | 877afafd950b84242204499b3ed8c1b2c8c75f31 (diff) | |
download | crawl-557f9d889812976293b4a668c190e0e1e0332857.tar.gz crawl-557f9d889812976293b4a668c190e0e1e0332857.zip |
Update module github.com/PuerkitoBio/goquery to v1.7.1
Diffstat (limited to 'vendor/golang.org/x/net/html/render.go')
-rw-r--r-- | vendor/golang.org/x/net/html/render.go | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/vendor/golang.org/x/net/html/render.go b/vendor/golang.org/x/net/html/render.go index d34564f..b46d81c 100644 --- a/vendor/golang.org/x/net/html/render.go +++ b/vendor/golang.org/x/net/html/render.go @@ -134,6 +134,9 @@ func render1(w writer, n *Node) error { } } return w.WriteByte('>') + case RawNode: + _, err := w.WriteString(n.Data) + return err default: return errors.New("html: unknown node type") } @@ -252,20 +255,19 @@ func writeQuoted(w writer, s string) error { // Section 12.1.2, "Elements", gives this list of void elements. Void elements // are those that can't have any contents. var voidElements = map[string]bool{ - "area": true, - "base": true, - "br": true, - "col": true, - "command": true, - "embed": true, - "hr": true, - "img": true, - "input": true, - "keygen": true, - "link": true, - "meta": true, - "param": true, - "source": true, - "track": true, - "wbr": true, + "area": true, + "base": true, + "br": true, + "col": true, + "embed": true, + "hr": true, + "img": true, + "input": true, + "keygen": true, // "keygen" has been removed from the spec, but are kept here for backwards compatibility. + "link": true, + "meta": true, + "param": true, + "source": true, + "track": true, + "wbr": true, } |