Generate bindings for HTMLUnknownElement.

This commit is contained in:
Josh Matthews 2013-08-28 19:51:07 -04:00
parent 65c993e7e6
commit 1eb5eeb630
8 changed files with 35 additions and 3 deletions

View file

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