aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-10-29 12:17:44 -0700
committerbors-servo <release+servo@mozilla.com>2013-10-29 12:17:44 -0700
commit2c3d5ec79f62744be530d6bc9ea7210a1116c828 (patch)
tree8a508e8d3f366203ead5bb0f5a6f95e9b7326958 /src/components/script/html/hubbub_html_parser.rs
parentd4744fe0890e93c4bb2bd4a30505080f2ca8813d (diff)
parent49b8c7c9b78ac51a6280b914bcdaef8c34d46570 (diff)
downloadservo-2c3d5ec79f62744be530d6bc9ea7210a1116c828.tar.gz
servo-2c3d5ec79f62744be530d6bc9ea7210a1116c828.zip
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?
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, 1 insertions, 4 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 460053d9686..cbcab035578 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -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,