Lock state store when saving/loading and update deps

This commit is contained in:
Tulir Asokan
2018-12-16 21:27:37 +02:00
parent c6d33d8bba
commit bb3d67dba9
163 changed files with 25522 additions and 9464 deletions
+9 -1
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
}