From 34e88898f29bb54ba21e0d44ab81ad4f5de2cfd0 Mon Sep 17 00:00:00 2001 From: iska Date: Thu, 9 Apr 2015 21:23:25 +0200 Subject: [PATCH] Fix inserting comment calls in the "initial" & the "after head" insertion modes --- HTMLKit/HTMLParser.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTMLKit/HTMLParser.m b/HTMLKit/HTMLParser.m index bbaf59e..2dd9260 100644 --- a/HTMLKit/HTMLParser.m +++ b/HTMLKit/HTMLParser.m @@ -796,7 +796,7 @@ } break; case HTMLTokenTypeComment: - [self insertComment:token.asCommentToken asChildOfNode:_document]; + [self insertComment:token.asCommentToken]; return; case HTMLTokenTypeDoctype: [self emitParseError:@"Unexpected DOCTYPE Token before "]; @@ -962,7 +962,7 @@ break; } case HTMLTokenTypeComment: - [self insertComment:token.asCommentToken asChildOfNode:_document]; + [self insertComment:token.asCommentToken]; return; case HTMLTokenTypeDoctype: [self emitParseError:@"Unexpected DOCTYPE Token after "];