aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
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 61c2d7c5748..2d9803d9670 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -258,7 +258,10 @@ fn build_element_from_tag(cx: *JSContext, tag: &str) -> AbstractNode<ScriptView>
handle_htmlelement!(cx, tag, "section", HTMLElementTypeId, HTMLElement);
unsafe {
- Node::as_abstract_node(cx, @Element::new(UnknownElementTypeId, tag.to_str()))
+ let element = @HTMLUnknownElement {
+ parent: HTMLElement::new(HTMLUnknownElementTypeId, tag.to_str())
+ };
+ Node::as_abstract_node(cx, element)
}
}