diff --git a/html/parse.go b/html/parse.go index 7e539b123..d5b0aee1a 100644 --- a/html/parse.go +++ b/html/parse.go @@ -680,9 +680,6 @@ func inHeadIM(p *parser) bool { return true } p.generateAllImpliedEndTags() - if n := p.oe.top(); n.DataAtom != a.Template { - return true - } p.popUntil(defaultScope, a.Template) p.clearActiveFormattingElements() p.templateStack.pop() diff --git a/html/testdata/webkit/template.dat b/html/testdata/webkit/template.dat index e25f690c0..2d6c0a733 100644 --- a/html/testdata/webkit/template.dat +++ b/html/testdata/webkit/template.dat @@ -859,6 +859,22 @@ |