aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-10-31 21:00:19 +0100
committerMs2ger <ms2ger@gmail.com>2013-10-31 21:00:19 +0100
commitec2fd955aa37a381360bd910d401bf4dbbae0c63 (patch)
tree4cec0e13c8bc48817adb1c538ccce7e914becc77 /src/components/script/html/hubbub_html_parser.rs
parentd4d9395c908cec2878fc9280521572738b73c48a (diff)
downloadservo-ec2fd955aa37a381360bd910d401bf4dbbae0c63.tar.gz
servo-ec2fd955aa37a381360bd910d401bf4dbbae0c63.zip
Introduce HTMLPreElement::new.
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 4d46bcd3559..9038f827699 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -249,7 +249,6 @@ pub fn build_element_from_tag(cx: *JSContext, tag: &str, document: AbstractDocum
handle_element!(cx, document, tag, "output", HTMLOutputElementTypeId, HTMLOutputElement, []);
handle_element!(cx, document, tag, "p", HTMLParagraphElementTypeId, HTMLParagraphElement, []);
handle_element!(cx, document, tag, "param", HTMLParamElementTypeId, HTMLParamElement, []);
- handle_element!(cx, document, tag, "pre", HTMLPreElementTypeId, HTMLPreElement, []);
handle_htmlelement!(cx, document, tag, "aside", HTMLElementTypeId, HTMLElement);
handle_htmlelement!(cx, document, tag, "b", HTMLElementTypeId, HTMLElement);
@@ -269,6 +268,7 @@ pub fn build_element_from_tag(cx: *JSContext, tag: &str, document: AbstractDocum
handle_newable_element!(document, tag, "h6", HTMLHeadingElement, Heading6);
handle_newable_element!(document, tag, "iframe", HTMLIFrameElement);
handle_newable_element!(document, tag, "img", HTMLImageElement);
+ handle_newable_element!(document, tag, "pre", HTMLPreElement);
handle_newable_element!(document, tag, "progress", HTMLProgressElement);
handle_newable_element!(document, tag, "q", HTMLQuoteElement);
handle_newable_element!(document, tag, "script", HTMLScriptElement);