Fix the "after frameset" insertion mode handling for "noframes" start tag and "html" end tag

This commit is contained in:
iska
2015-04-08 20:37:53 +02:00
parent e34456f269
commit 79402946ec
+2 -2
View File
@@ -2228,7 +2228,7 @@
case HTMLTokenTypeStartTag:
if ([token.asTagToken.tagName isEqualToString:@"html"]) {
[self HTMLInsertionModeInBody:token];
} else if ([token.asTagToken.tagName isEqualToString:@"html"]) {
} else if ([token.asTagToken.tagName isEqualToString:@"noframes"]) {
[self HTMLInsertionModeInHead:token];
} else {
break;
@@ -2236,7 +2236,7 @@
return;
case HTMLTokenTypeEndTag:
if ([token.asTagToken.tagName isEqualToString:@"html"]) {
[self HTMLInsertionModeInBody:token];
[self HTMLInsertionModeAfterAfterFrameset:token];
return;
}
break;