mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
Implement insertBefore and reimplement appendChild.
This commit is contained in:
parent
2c3d5ec79f
commit
2ca1eede9a
5 changed files with 175 additions and 52 deletions
|
@ -477,7 +477,7 @@ pub fn parse_html(cx: *JSContext,
|
|||
debug!("append child %x %x", cast::transmute(parent), cast::transmute(child));
|
||||
let parent: AbstractNode<ScriptView> = NodeWrapping::from_hubbub_node(parent);
|
||||
let child: AbstractNode<ScriptView> = NodeWrapping::from_hubbub_node(child);
|
||||
parent.add_child(child);
|
||||
parent.AppendChild(child);
|
||||
}
|
||||
child
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue