aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlimageelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-08-29 12:14:56 +0200
committerMs2ger <ms2ger@gmail.com>2014-09-05 17:45:48 +0200
commit9cf2085823a41dcb98146daf900f077ef3911122 (patch)
treeeb146cca3e42744fe9d0eb1f41f45c8253b9e80b /src/components/script/dom/htmlimageelement.rs
parent64a9075535cbb70eb7b349d2226948747e2f7940 (diff)
downloadservo-9cf2085823a41dcb98146daf900f077ef3911122.tar.gz
servo-9cf2085823a41dcb98146daf900f077ef3911122.zip
Fix HTMLImageElement setters.
These would crash because the functions they call assert that they receive lower-case names. Fixing the crash allows reflection-embedded.html to finish successfully.
Diffstat (limited to 'src/components/script/dom/htmlimageelement.rs')
-rw-r--r--src/components/script/dom/htmlimageelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/htmlimageelement.rs b/src/components/script/dom/htmlimageelement.rs
index 6717711292e..33d7b7dfd31 100644
--- a/src/components/script/dom/htmlimageelement.rs
+++ b/src/components/script/dom/htmlimageelement.rs
@@ -113,14 +113,14 @@ impl<'a> HTMLImageElementMethods for JSRef<'a, HTMLImageElement> {
fn SetUseMap(&self, use_map: DOMString) {
let element: &JSRef<Element> = ElementCast::from_ref(self);
- element.set_string_attribute("useMap", use_map)
+ element.set_string_attribute("usemap", use_map)
}
make_bool_getter!(IsMap)
fn SetIsMap(&self, is_map: bool) {
let element: &JSRef<Element> = ElementCast::from_ref(self);
- element.set_string_attribute("isMap", is_map.to_string())
+ element.set_string_attribute("ismap", is_map.to_string())
}
fn Width(&self) -> u32 {