Support arbitrary protos when wrapping DOM objects with constructors.

This commit is contained in:
Josh Matthews 2023-05-28 22:43:55 -04:00
parent d9600ff50f
commit dbff26bce0
197 changed files with 2028 additions and 586 deletions

View file

@ -420,7 +420,7 @@ impl Tokenizer {
self.insert_node(node, Dom::from_ref(element.upcast()));
},
ParseOperation::CreateComment { text, node } => {
let comment = Comment::new(DOMString::from(text), document);
let comment = Comment::new(DOMString::from(text), document, None);
self.insert_node(node, Dom::from_ref(&comment.upcast()));
},
ParseOperation::AppendBeforeSibling { sibling, node } => {