|
|
@@ -1071,13 +1071,7 @@ func inBodyIM(p *parser) bool {
|
|
|
p.acknowledgeSelfClosingTag()
|
|
|
}
|
|
|
return true
|
|
|
- case a.Frame:
|
|
|
- // TODO: remove this divergence from the HTML5 spec.
|
|
|
- if p.oe.contains(a.Template) {
|
|
|
- p.addElement()
|
|
|
- return true
|
|
|
- }
|
|
|
- case a.Caption, a.Col, a.Colgroup, a.Head, a.Tbody, a.Td, a.Tfoot, a.Th, a.Thead, a.Tr:
|
|
|
+ case a.Caption, a.Col, a.Colgroup, a.Frame, a.Head, a.Tbody, a.Td, a.Tfoot, a.Th, a.Thead, a.Tr:
|
|
|
// Ignore the token.
|
|
|
default:
|
|
|
p.reconstructActiveFormattingElements()
|
|
|
@@ -1925,11 +1919,6 @@ func inFramesetIM(p *parser) bool {
|
|
|
p.acknowledgeSelfClosingTag()
|
|
|
case a.Noframes:
|
|
|
return inHeadIM(p)
|
|
|
- case a.Template:
|
|
|
- // TODO: remove this divergence from the HTML5 spec.
|
|
|
- //
|
|
|
- // See https://bugs.chromium.org/p/chromium/issues/detail?id=829668
|
|
|
- return inTemplateIM(p)
|
|
|
}
|
|
|
case EndTagToken:
|
|
|
switch p.tok.DataAtom {
|