Index: Source/core/html/parser/HTMLTreeBuilder.cpp |
diff --git a/Source/core/html/parser/HTMLTreeBuilder.cpp b/Source/core/html/parser/HTMLTreeBuilder.cpp |
index ee860f1a0ffcd542e7a45daf48051fce68e0337f..79b20e71443e2913c018dccc29b8e204302ee1f2 100644 |
--- a/Source/core/html/parser/HTMLTreeBuilder.cpp |
+++ b/Source/core/html/parser/HTMLTreeBuilder.cpp |
@@ -35,6 +35,7 @@ |
#include "XMLNames.h" |
#include "core/dom/DocumentFragment.h" |
#include "core/html/HTMLFormElement.h" |
+#include "core/html/HTMLHtmlElement.h" |
#include "core/html/HTMLOptGroupElement.h" |
#include "core/html/HTMLTableElement.h" |
#include "core/html/parser/AtomicHTMLToken.h" |
@@ -1633,7 +1634,7 @@ void HTMLTreeBuilder::resetInsertionModeAppropriately() |
if (item->hasTagName(framesetTag)) { |
return setInsertionMode(InFramesetMode); |
} |
- if (item->hasTagName(htmlTag)) { |
+ if (isHTMLHtmlElement(item->node())) { |
ASSERT(isParsingFragment()); |
return setInsertionMode(BeforeHeadMode); |
} |