Implement HTMLUnknownElement::new.

This commit is contained in:
Ms2ger 2013-10-26 13:24:56 +02:00
parent 4eb1e88e8f
commit 49b8c7c9b7
3 changed files with 33 additions and 5 deletions

View file

@ -304,10 +304,7 @@ pub fn build_element_from_tag(cx: *JSContext, tag: &str, document: AbstractDocum
handle_htmltablecellelement!(cx, document, tag, "td", HTMLTableDataCellElementTypeId, HTMLTableDataCellElement);
handle_htmltablecellelement!(cx, document, tag, "th", HTMLTableHeaderCellElementTypeId, HTMLTableHeaderCellElement);
let element = @HTMLUnknownElement {
htmlelement: HTMLElement::new(HTMLUnknownElementTypeId, tag.to_str(), document)
};
return unsafe { Node::as_abstract_node(cx, element) };
return HTMLUnknownElement::new(tag.to_str(), document);
}
pub fn parse_html(cx: *JSContext,