diff --git a/dom/tests/mochitest/bugs/test_bug42976.html b/dom/tests/mochitest/bugs/test_bug42976.html index d4cd2294074e..afe4b8b3f0fa 100644 --- a/dom/tests/mochitest/bugs/test_bug42976.html +++ b/dom/tests/mochitest/bugs/test_bug42976.html @@ -9,7 +9,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=42976 - + Mozilla Bug 42976

@@ -22,50 +22,57 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=42976
 
 
diff --git a/parser/html/nsHtml5Parser.cpp b/parser/html/nsHtml5Parser.cpp index d4a5be187c02..0340bd036514 100644 --- a/parser/html/nsHtml5Parser.cpp +++ b/parser/html/nsHtml5Parser.cpp @@ -459,7 +459,7 @@ nsHtml5Parser::ParseFragment(const nsAString& aSourceBuffer, NS_ENSURE_TRUE(uri, NS_ERROR_NOT_AVAILABLE); nsCOMPtr container = doc->GetContainer(); - NS_ENSURE_TRUE(container, NS_ERROR_NOT_AVAILABLE); + // Can be null if owner document is synthetic Initialize(doc, uri, container, nsnull);