Index: Source/WebCore/html/parser/HTMLTreeBuilder.cpp |
=================================================================== |
--- Source/WebCore/html/parser/HTMLTreeBuilder.cpp (revision 145565) |
+++ Source/WebCore/html/parser/HTMLTreeBuilder.cpp (working copy) |
@@ -957,7 +957,8 @@ |
void HTMLTreeBuilder::processTemplateEndTag(AtomicHTMLToken* token) |
{ |
- if (!m_tree.openElements()->inScope(token->name())) { |
+ if (!m_tree.openElements()->hasTemplateInHTMLScope()) { |
+ ASSERT(m_templateInsertionModes.isEmpty()); |
parseError(token); |
return; |
} |