aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlpy <pylaurent1314@gmail.com>2014-02-17 00:25:20 +0800
committerlpy <pylaurent1314@gmail.com>2014-02-17 00:37:26 +0800
commitcc77c2926550d24c7359c72bc7a4f5f4bb80dc6c (patch)
tree78af1ef10356b86a87846037c14062be38765504 /src
parent41f55059a80156408368e375c2118066798958b9 (diff)
downloadservo-cc77c2926550d24c7359c72bc7a4f5f4bb80dc6c.tar.gz
servo-cc77c2926550d24c7359c72bc7a4f5f4bb80dc6c.zip
Change <em> and <strong> to be HTMLElement (fixes #1704)
Diffstat (limited to 'src')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs2
1 files changed, 2 insertions, 0 deletions
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);