Fix assignment for the character token in the "in table" phase

This commit is contained in:
iska
2015-04-11 00:40:12 +02:00
parent ca02086636
commit 2a2a21d1fa
+1 -1
View File
@@ -1544,7 +1544,7 @@
switch (token.type) {
case HTMLTokenTypeCharacter:
if ([self.currentNode.tagName isEqualToAny:@"table", @"tbody", @"thead", @"tr", nil]) {
_pendingTableCharacterTokens.characters = @"";
_pendingTableCharacterTokens = [[HTMLCharacterToken alloc] initWithString:@""];
_originalInsertionMode = _insertionMode;
[self switchInsertionMode:HTMLInsertionModeInTableText];
[self reprocessToken:token];