https://www.w3.org/Bugs/Public/show_bug.cgi?id=20829
Created attachment 185562 [details] Patch
Comment on attachment 185562 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=185562&action=review > Source/WebCore/html/parser/HTMLTreeBuilder.cpp:1592 > + if (commonAncestor->hasTagName(templateTag)) Wouldn't it be nice if we could just do this check inside parserAppendChild? We probably don't want to do this for performance reasons, but we could at least add an ASSERT that the parser never appends directly to <template>. Sort of weird to have an assertion about HTML parsing behavior in ContainerNode.cpp, but then parserAppendChild is effectively part of the HTML parser anyway.
Comment on attachment 185562 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=185562&action=review >> Source/WebCore/html/parser/HTMLTreeBuilder.cpp:1592 >> + if (commonAncestor->hasTagName(templateTag)) > > Wouldn't it be nice if we could just do this check inside parserAppendChild? We probably don't want to do this for performance reasons, but we could at least add an ASSERT that the parser never appends directly to <template>. Sort of weird to have an assertion about HTML parsing behavior in ContainerNode.cpp, but then parserAppendChild is effectively part of the HTML parser anyway. done
Created attachment 185576 [details] Patch
Comment on attachment 185576 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=185576&action=review > LayoutTests/html5lib/resources/template.dat:946 > +<body><template><i><menu>Foo</i> Not really related to this patch, but do you have commit rights to the html5lib codesite project?
no. that'd be nice =-).
Comment on attachment 185576 [details] Patch Clearing flags on attachment: 185576 Committed r141327: <http://trac.webkit.org/changeset/141327>
All reviewed patches have been landed. Closing bug.