Index: Source/core/html/parser/HTMLElementStack.cpp |
diff --git a/Source/core/html/parser/HTMLElementStack.cpp b/Source/core/html/parser/HTMLElementStack.cpp |
index ed7cccc23df1d7cac3225f51eade1ab28aca69e2..1c2e2fa4091c846b82202755ae0203f879837d3c 100644 |
--- a/Source/core/html/parser/HTMLElementStack.cpp |
+++ b/Source/core/html/parser/HTMLElementStack.cpp |
@@ -32,6 +32,7 @@ |
#include "SVGNames.h" |
#include "core/dom/Element.h" |
#include "core/html/HTMLOptGroupElement.h" |
+#include "core/html/HTMLTableElement.h" |
#include <wtf/PassOwnPtr.h> |
namespace WebCore { |
@@ -53,7 +54,7 @@ inline bool isScopeMarker(HTMLStackItem* item) |
|| item->hasTagName(captionTag) |
|| item->hasTagName(marqueeTag) |
|| item->hasTagName(objectTag) |
- || item->hasTagName(tableTag) |
+ || isHTMLTableElement(item->node()) |
|| item->hasTagName(tdTag) |
|| item->hasTagName(thTag) |
|| item->hasTagName(MathMLNames::miTag) |
@@ -78,7 +79,7 @@ inline bool isListItemScopeMarker(HTMLStackItem* item) |
inline bool isTableScopeMarker(HTMLStackItem* item) |
{ |
- return item->hasTagName(tableTag) |
+ return isHTMLTableElement(item->node()) |
|| item->hasTagName(templateTag) |
|| isRootNode(item); |
} |