aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorJunyoung Cho <june0.cho@samsung.com>2013-08-09 11:36:30 +0900
committerJosh Matthews <josh@joshmatthews.net>2013-08-22 16:25:37 -0400
commite7b803866565c680fa406fcbf2c5fa346cbc310f (patch)
tree17d58df6ba2d0dcb6c0606c49aed5e38f984f442 /src/components/script/html/hubbub_html_parser.rs
parentf12406ac241e3919214d3ef909a8282c2c86e59f (diff)
downloadservo-e7b803866565c680fa406fcbf2c5fa346cbc310f.tar.gz
servo-e7b803866565c680fa406fcbf2c5fa346cbc310f.zip
Generate bindings for HTMLAreaElement
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 51d17d8cfb2..5182bbb1a00 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -3,7 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::element::{HTMLElementTypeId,
- HTMLAnchorElementTypeId, HTMLAppletElementTypeId, HTMLBRElementTypeId,
+ HTMLAnchorElementTypeId, HTMLAppletElementTypeId,
+ HTMLAreaElementTypeId, HTMLBRElementTypeId,
HTMLBodyElementTypeId, HTMLCanvasElementTypeId, HTMLDivElementTypeId,
HTMLDListElementTypeId,
HTMLFontElementTypeId, HTMLFormElementTypeId, HTMLHRElementTypeId,
@@ -29,6 +30,7 @@ use dom::element::{HTMLHeadingElementTypeId, Heading1, Heading2, Heading3, Headi
use dom::htmlbrelement::HTMLBRElement;
use dom::htmlanchorelement::HTMLAnchorElement;
use dom::htmlappletelement::HTMLAppletElement;
+use dom::htmlareaelement::HTMLAreaElement;
use dom::htmlbodyelement::HTMLBodyElement;
use dom::htmlcanvaselement::HTMLCanvasElement;
use dom::htmldlistelement::HTMLDListElement;
@@ -230,6 +232,7 @@ fn build_element_from_tag(cx: *JSContext, tag: &str) -> AbstractNode<ScriptView>
// TODO (Issue #85): use atoms
handle_element!(cx, tag, "a", HTMLAnchorElementTypeId, HTMLAnchorElement, []);
handle_element!(cx, tag, "applet", HTMLAppletElementTypeId, HTMLAppletElement, []);
+ handle_element!(cx, tag, "area", HTMLAreaElementTypeId, HTMLAreaElement, []);
handle_element!(cx, tag, "br", HTMLBRElementTypeId, HTMLBRElement, []);
handle_element!(cx, tag, "body", HTMLBodyElementTypeId, HTMLBodyElement, []);
handle_element!(cx, tag, "canvas", HTMLCanvasElementTypeId, HTMLCanvasElement, []);