aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-10-31 02:16:26 -0700
committerbors-servo <release+servo@mozilla.com>2013-10-31 02:16:26 -0700
commit6225347462d17608bd55f7bbae34165eaa797437 (patch)
tree85391d9b5a5a24ddff4eff88abac998a88ee853c /src/components/script/html/hubbub_html_parser.rs
parent1a7e9e5e2c02d9e023c901f14a8b54e9a3c6a8a2 (diff)
parent801348270c5a98740c1f3e165395f3184bd3dfed (diff)
downloadservo-6225347462d17608bd55f7bbae34165eaa797437.tar.gz
servo-6225347462d17608bd55f7bbae34165eaa797437.zip
auto merge of #1136 : Ms2ger/servo/insertBefore, r=jdm
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index cbcab035578..4ed1981b8ed 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -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.add_child(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
},