Update to go 1.12 version of golang.org/x/net

Change-Id: I3f2fa5d7b6811c9eca58992318d19e44ec9131fd
This commit is contained in:
Davanum Srinivas
2019-03-12 09:16:45 -04:00
parent eb4865fbe5
commit 2aa1348e6c
62 changed files with 620 additions and 1031 deletions

View File

@@ -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
}