aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-11-02 18:22:35 +0100
committerMs2ger <ms2ger@gmail.com>2013-11-02 18:22:35 +0100
commit0d56584561ff17830e2e57f2980c1eb7b1d8a449 (patch)
treef5a1639f2497415bc758ef532a841a9c26ff5dcb /src/components/script/html/hubbub_html_parser.rs
parent74312da1baff3a5658aabd3d0f2c0be26ae8900b (diff)
downloadservo-0d56584561ff17830e2e57f2980c1eb7b1d8a449.tar.gz
servo-0d56584561ff17830e2e57f2980c1eb7b1d8a449.zip
Introduce HTMLButtonElement::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 61f5b38a2b8..07983994c74 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -215,7 +215,6 @@ pub fn build_element_from_tag(cx: *JSContext, tag: &str, document: AbstractDocum
handle_element!(cx, document, tag, "base", HTMLBaseElementTypeId, HTMLBaseElement, []);
handle_element!(cx, document, tag, "br", HTMLBRElementTypeId, HTMLBRElement, []);
handle_element!(cx, document, tag, "body", HTMLBodyElementTypeId, HTMLBodyElement, []);
- handle_element!(cx, document, tag, "button", HTMLButtonElementTypeId, HTMLButtonElement, []);
handle_htmlelement!(cx, document, tag, "aside", HTMLElementTypeId, HTMLElement);
handle_htmlelement!(cx, document, tag, "b", HTMLElementTypeId, HTMLElement);
@@ -224,6 +223,7 @@ 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, "button", HTMLButtonElement);
handle_newable_element!(document, tag, "canvas", HTMLCanvasElement);
handle_newable_element!(document, tag, "caption", HTMLTableCaptionElement);
handle_newable_element!(document, tag, "col", HTMLTableColElement);