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.
This commit is contained in:
Ms2ger 2014-08-29 12:14:56 +02:00
parent 64a9075535
commit 9cf2085823
2 changed files with 26522 additions and 3 deletions

View file

@ -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 {

File diff suppressed because it is too large Load diff