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];