Fix tag-name check for "td" & "th" end-tag handling in "in cell" phase

This commit is contained in:
iska
2015-04-11 00:44:20 +02:00
parent 23f8ec35fb
commit 68d4eb03ce
+1 -1
View File
@@ -1916,7 +1916,7 @@
return;
} else {
[self generateImpliedEndTagsExceptForElement:nil];
if (![self.currentNode.tagName isEqualToString:@"colgroup"]) {
if (![self.currentNode.tagName isEqualToString:token.asTagToken.tagName]) {
[self emitParseError:@"Unexpected nested (%@) element in <td>", token.asTagToken.tagName];
}
[_stackOfOpenElements popElementsUntilElementPoppedWithTagName:token.asTagToken.tagName];