Index: Source/WebCore/html/parser/HTMLTreeBuilder.cpp |
=================================================================== |
--- Source/WebCore/html/parser/HTMLTreeBuilder.cpp (revision 145466) |
+++ Source/WebCore/html/parser/HTMLTreeBuilder.cpp (working copy) |
@@ -1233,7 +1233,7 @@ |
} |
if (isCaptionColOrColgroupTag(token->name()) || isTableBodyContextTag(token->name())) { |
// FIXME: This is slow. |
- if (!m_tree.openElements()->inTableScope(tbodyTag.localName()) && !m_tree.openElements()->inTableScope(theadTag.localName()) && !m_tree.openElements()->inTableScope(tfootTag.localName())) { |
+ if (!m_tree.openElements()->inTableScope(tbodyTag) && !m_tree.openElements()->inTableScope(theadTag) && !m_tree.openElements()->inTableScope(tfootTag)) { |
ASSERT(isParsingFragmentOrTemplateContents()); |
parseError(token); |
return; |
@@ -1722,7 +1722,7 @@ |
} |
if (token->name() == tableTag) { |
// FIXME: This is slow. |
- if (!m_tree.openElements()->inTableScope(tbodyTag.localName()) && !m_tree.openElements()->inTableScope(theadTag.localName()) && !m_tree.openElements()->inTableScope(tfootTag.localName())) { |
+ if (!m_tree.openElements()->inTableScope(tbodyTag) && !m_tree.openElements()->inTableScope(theadTag) && !m_tree.openElements()->inTableScope(tfootTag)) { |
ASSERT(isParsingFragmentOrTemplateContents()); |
parseError(token); |
return; |
@@ -1977,7 +1977,7 @@ |
bool HTMLTreeBuilder::processTrEndTagForInRow() |
{ |
- if (!m_tree.openElements()->inTableScope(trTag.localName())) { |
+ if (!m_tree.openElements()->inTableScope(trTag)) { |
ASSERT(isParsingFragmentOrTemplateContents()); |
// FIXME: parse error |
return false; |