Add error-emit in the "initial" insertion mode when a DOCTYPE is missing
This commit is contained in:
@@ -108,7 +108,6 @@ NS_INLINE BOOL nilOrEqual(id first, id second) {
|
||||
}
|
||||
}
|
||||
|
||||
#warning Check "iframe srcdoc"
|
||||
if ([_publicIdentifier hasPrefixIgnoringCase:@"-//W3C//DTD XHTML 1.0 Frameset//"] ||
|
||||
[_publicIdentifier hasPrefixIgnoringCase:@"-//W3C//DTD XHTML 1.0 Transitional//"]) {
|
||||
return HTMLQuirksModeLimitedQuirks;
|
||||
|
||||
@@ -684,7 +684,8 @@
|
||||
break;
|
||||
}
|
||||
|
||||
#warning Check "iframe srcdoc"
|
||||
[self emitParseError:@"Expected a DOCTYPE but got %@", token];
|
||||
_document.quirksMode = HTMLQuirksModeQuirks;
|
||||
[self switchInsertionMode:HTMLInsertionModeBeforeHTML];
|
||||
[self reprocessToken:token];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user