mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Support arbitrary protos when wrapping DOM objects with constructors.
This commit is contained in:
parent
d9600ff50f
commit
dbff26bce0
197 changed files with 2028 additions and 586 deletions
|
@ -54,7 +54,7 @@ impl HTMLOptionsCollection {
|
|||
let document = document_from_node(&*root);
|
||||
|
||||
for _ in 0..count {
|
||||
let element = HTMLOptionElement::new(local_name!("option"), None, &document);
|
||||
let element = HTMLOptionElement::new(local_name!("option"), None, &document, None);
|
||||
let node = element.upcast::<Node>();
|
||||
root.AppendChild(node)?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue