From 2a2a21d1fadb390cfb8efdf68d8fdcb9bd6261c2 Mon Sep 17 00:00:00 2001 From: iska Date: Sat, 11 Apr 2015 00:40:12 +0200 Subject: [PATCH] Fix assignment for the character token in the "in table" phase --- HTMLKit/HTMLParser.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTMLKit/HTMLParser.m b/HTMLKit/HTMLParser.m index 8c8b7cd..e6f7863 100644 --- a/HTMLKit/HTMLParser.m +++ b/HTMLKit/HTMLParser.m @@ -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];