Reset the document's ready state on document initialization in the HTML Parser

This commit is contained in:
iska
2015-12-23 16:20:42 +01:00
parent e80188dd00
commit 85edf33950
+1
View File
@@ -108,6 +108,7 @@
if (_document == nil) {
_document = [HTMLDocument new];
}
_document.readyState = HTMLDocumentLoading;
_document.quirksMode = HTMLQuirksModeNoQuirks;
_document.documentType = nil;
[_document removeAllChildNodes];