From 31b873789bdae68b19cc423901dd9a230097db96 Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Tue, 15 Oct 2013 20:22:32 +0900 Subject: [PATCH] Handle th tag as HTMLTableCellElement. #1060 --- src/components/script/html/hubbub_html_parser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index ec9e186b51d..66953315fea 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -260,6 +260,7 @@ pub fn build_element_from_tag(cx: *JSContext, tag: &str, document: AbstractDocum handle_element!(cx, tag, "style", HTMLStyleElementTypeId, HTMLStyleElement, []); handle_element!(cx, tag, "table", HTMLTableElementTypeId, HTMLTableElement, []); handle_element!(cx, tag, "caption", HTMLTableCaptionElementTypeId, HTMLTableCaptionElement, []); + handle_element!(cx, tag, "th", HTMLTableCellElementTypeId, HTMLTableCellElement, []); handle_element!(cx, tag, "td", HTMLTableCellElementTypeId, HTMLTableCellElement, []); handle_element!(cx, tag, "col", HTMLTableColElementTypeId, HTMLTableColElement, []); handle_element!(cx, tag, "colgroup",HTMLTableColElementTypeId, HTMLTableColElement, []);