Do not root HTMLScriptElement::parser_document

This commit is contained in:
Anthony Ramine 2015-10-17 15:11:45 +02:00
parent e8f358d178
commit dee3aecea1

View file

@ -209,7 +209,7 @@ impl HTMLScriptElement {
// Step 10.
let document_from_node_ref = document_from_node(self);
let document_from_node_ref = document_from_node_ref.r();
if self.parser_inserted.get() && self.parser_document.root().r() != document_from_node_ref {
if self.parser_inserted.get() && &*self.parser_document != document_from_node_ref {
return NextParserState::Continue;
}