diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-04 17:29:23 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-06 14:31:27 +0200 |
commit | 254207730e75f036d6f5182cdb37b230b47a101f (patch) | |
tree | 613c8e3f8e29a761626b8153847d54c47df3d607 /components/script/dom/htmlelement.rs | |
parent | dd88bcddc4ab0f4f774ee8e3e5785ed8a7a96c64 (diff) | |
download | servo-254207730e75f036d6f5182cdb37b230b47a101f.tar.gz servo-254207730e75f036d6f5182cdb37b230b47a101f.zip |
Make Element::get_attribute() take its namespace by reference
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index 3c448e3ff1d..ad2e96abf1a 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -196,7 +196,7 @@ impl<'a> HTMLElementCustomAttributeHelpers for JSRef<'a, HTMLElement> { fn get_custom_attr(self, name: DOMString) -> Option<DOMString> { let element: JSRef<Element> = ElementCast::from_ref(self); - element.get_attribute(ns!(""), &Atom::from_slice(&to_snake_case(name))).map(|attr| { + element.get_attribute(&ns!(""), &Atom::from_slice(&to_snake_case(name))).map(|attr| { let attr = attr.root(); // FIXME(https://github.com/rust-lang/rust/issues/23338) let attr = attr.r(); |