aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/html/const.go
diff options
context:
space:
mode:
authorale <ale@incal.net>2018-12-28 13:31:24 +0000
committerale <ale@incal.net>2018-12-28 13:31:24 +0000
commit3518feaf05fcb7f745975851c6684a63532ff19a (patch)
tree4d9fd5888526576fc6934f3e2ef0f5c21c5c5ead /vendor/golang.org/x/net/html/const.go
parent2f3ca2f8677651a417d9e6819e8da3ed965a83f0 (diff)
downloadcrawl-3518feaf05fcb7f745975851c6684a63532ff19a.tar.gz
crawl-3518feaf05fcb7f745975851c6684a63532ff19a.zip
Updated dependencies
Diffstat (limited to 'vendor/golang.org/x/net/html/const.go')
-rw-r--r--vendor/golang.org/x/net/html/const.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/vendor/golang.org/x/net/html/const.go b/vendor/golang.org/x/net/html/const.go
index 5eb7c5a..a3a918f 100644
--- a/vendor/golang.org/x/net/html/const.go
+++ b/vendor/golang.org/x/net/html/const.go
@@ -97,8 +97,16 @@ func isSpecialElement(element *Node) bool {
switch element.Namespace {
case "", "html":
return isSpecialElementMap[element.Data]
+ case "math":
+ switch element.Data {
+ case "mi", "mo", "mn", "ms", "mtext", "annotation-xml":
+ return true
+ }
case "svg":
- return element.Data == "foreignObject"
+ switch element.Data {
+ case "foreignObject", "desc", "title":
+ return true
+ }
}
return false
}