mirror of
https://github.com/servo/servo
synced 2026-05-01 03:47:53 +02:00
Removed JS::root Fixes #8251
This commit is contained in:
@@ -364,7 +364,7 @@ impl HTMLScriptElement {
|
||||
|
||||
// Step 1.
|
||||
let doc = document_from_node(self);
|
||||
if self.parser_inserted.get() && doc.r() != self.parser_document.root().r() {
|
||||
if self.parser_inserted.get() && &*doc != &*self.parser_document {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user