mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Address review comments and replace add_to_doc with node_removed and node_inserted functions.
This commit is contained in:
parent
2ca1eede9a
commit
801348270c
2 changed files with 80 additions and 63 deletions
|
@ -477,7 +477,10 @@ 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.AppendChild(child);
|
||||
// FIXME this needs to be AppendChild.
|
||||
// Probably blocked on #838, so that we can remove the
|
||||
// double root element.
|
||||
parent.add_child(child, None);
|
||||
}
|
||||
child
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue