Address review comments and replace add_to_doc with node_removed and node_inserted functions.

This commit is contained in:
Ms2ger 2013-10-30 11:13:58 +01:00
parent 2ca1eede9a
commit 801348270c
2 changed files with 80 additions and 63 deletions

View file

@ -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
},