aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-08-28 19:51:07 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-08-28 19:51:07 -0400
commit1eb5eeb630f46b4474678d3634c70db8c99adf77 (patch)
tree740d9d8ad2c75a0a9511a22094cd3b8628e1a010 /src/components/script/html
parent65c993e7e6c7e744a08fcedd63a64d0b43505c1d (diff)
downloadservo-1eb5eeb630f46b4474678d3634c70db8c99adf77.tar.gz
servo-1eb5eeb630f46b4474678d3634c70db8c99adf77.zip
Generate bindings for HTMLUnknownElement.
Diffstat (limited to 'src/components/script/html')
-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)
}
}