diff --git a/content/html/document/src/nsHTMLFragmentContentSink.cpp b/content/html/document/src/nsHTMLFragmentContentSink.cpp index 918d33ec4f2e..823ca70b9cd7 100644 --- a/content/html/document/src/nsHTMLFragmentContentSink.cpp +++ b/content/html/document/src/nsHTMLFragmentContentSink.cpp @@ -1100,10 +1100,6 @@ nsHTMLParanoidFragmentSink::CloseContainer(const nsHTMLTag aTag) { nsresult rv = NS_OK; - if (mIgnoreNextCloseHead && aTag == eHTMLTag_head) { - mIgnoreNextCloseHead = PR_FALSE; - return NS_OK; - } if (mSkip) { mSkip = PR_FALSE; return rv; @@ -1233,10 +1229,7 @@ nsHTMLParanoidFragmentSink::AddLeaf(const nsIParserNode& aNode) nsresult rv = NS_OK; - // We need to explicitly skip adding leaf nodes in the paranoid sink, - // otherwise things like the textnode under