From 85edf339509df3ae805aab43f5ca3d29b9b4a20b Mon Sep 17 00:00:00 2001 From: iska Date: Wed, 23 Dec 2015 16:20:42 +0100 Subject: [PATCH] Reset the document's ready state on document initialization in the HTML Parser --- HTMLKit/HTMLParser.m | 1 + 1 file changed, 1 insertion(+) diff --git a/HTMLKit/HTMLParser.m b/HTMLKit/HTMLParser.m index f5042c8..6da0509 100644 --- a/HTMLKit/HTMLParser.m +++ b/HTMLKit/HTMLParser.m @@ -108,6 +108,7 @@ if (_document == nil) { _document = [HTMLDocument new]; } + _document.readyState = HTMLDocumentLoading; _document.quirksMode = HTMLQuirksModeNoQuirks; _document.documentType = nil; [_document removeAllChildNodes];