auto merge of #1138 : Ms2ger/servo/reflect-HTMLUnknownElement, r=jdm

@jdm: I think we should move nodes more in line with the rest of the DOM. How do you feel about something like this?
This commit is contained in:
bors-servo 2013-10-29 12:17:44 -07:00
commit 2c3d5ec79f
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,