Fix inserting comment calls in the "initial" & the "after head" insertion modes

This commit is contained in:
iska
2015-04-09 21:23:25 +02:00
parent e362bf717f
commit 34e88898f2
+2 -2
View File
@@ -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 <head>"];
@@ -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 <head>"];