From cc77c2926550d24c7359c72bc7a4f5f4bb80dc6c Mon Sep 17 00:00:00 2001 From: lpy Date: Mon, 17 Feb 2014 00:25:20 +0800 Subject: Change and to be HTMLElement (fixes #1704) --- src/components/script/html/hubbub_html_parser.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components/script') diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index 1079e5986ef..4ba46343817 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -181,6 +181,7 @@ pub fn build_element_from_tag(tag: DOMString, document: AbstractDocument) -> Abs handle_element!(document, tag, "dir", HTMLDirectoryElement); handle_element!(document, tag, "div", HTMLDivElement); handle_element!(document, tag, "dl", HTMLDListElement); + handle_element!(document, tag, "em", HTMLElement); handle_element!(document, tag, "embed", HTMLEmbedElement); handle_element!(document, tag, "fieldset", HTMLFieldSetElement); handle_element!(document, tag, "font", HTMLFontElement); @@ -225,6 +226,7 @@ pub fn build_element_from_tag(tag: DOMString, document: AbstractDocument) -> Abs handle_element!(document, tag, "small", HTMLElement); handle_element!(document, tag, "source", HTMLSourceElement); handle_element!(document, tag, "span", HTMLSpanElement); + handle_element!(document, tag, "strong", HTMLElement); handle_element!(document, tag, "style", HTMLStyleElement); handle_element!(document, tag, "table", HTMLTableElement); handle_element!(document, tag, "tbody", HTMLTableSectionElement); -- cgit v1.2.3