diff options
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index a8587de354e..57053657185 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -67,17 +67,6 @@ macro_rules! handle_newable_element( } ) ) -macro_rules! handle_htmltablecellelement( - ($cx: expr, - $document: expr, - $tag: expr, - $string: expr, - $type_id: expr, - $ctor: ident) => ( - handle_element_base!(htmltablecellelement, HTMLTableCellElement, - $cx, $document, $tag, $string, $type_id, $ctor, []); - ) -) macro_rules! handle_element_base( ($parent: ident, $parent_init: ident, @@ -299,11 +288,10 @@ pub fn build_element_from_tag(cx: *JSContext, tag: &str, document: AbstractDocum handle_htmlelement!(cx, document, tag, "small", HTMLElementTypeId, HTMLElement); handle_newable_element!(document, tag, "audio", HTMLAudioElement); + handle_newable_element!(document, tag, "td", HTMLTableDataCellElement); + handle_newable_element!(document, tag, "th", HTMLTableHeaderCellElement); handle_newable_element!(document, tag, "video", HTMLVideoElement); - handle_htmltablecellelement!(cx, document, tag, "td", HTMLTableDataCellElementTypeId, HTMLTableDataCellElement); - handle_htmltablecellelement!(cx, document, tag, "th", HTMLTableHeaderCellElementTypeId, HTMLTableHeaderCellElement); - return HTMLUnknownElement::new(tag.to_str(), document); } |