aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-04-03 14:17:26 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-04-06 14:12:56 +0200
commitdd88bcddc4ab0f4f774ee8e3e5785ed8a7a96c64 (patch)
tree7a0060a4cce12175f152ba79312bf5d67129b336 /components/script/dom/htmlelement.rs
parentc557736d26abf2f5de4dd5fe43623766c8342d72 (diff)
downloadservo-dd88bcddc4ab0f4f774ee8e3e5785ed8a7a96c64.tar.gz
servo-dd88bcddc4ab0f4f774ee8e3e5785ed8a7a96c64.zip
Fix Element::RemoveAttribute*()
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index 55c0fc6fcec..3c448e3ff1d 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -207,7 +207,8 @@ impl<'a> HTMLElementCustomAttributeHelpers for JSRef<'a, HTMLElement> {
fn delete_custom_attr(self, name: DOMString) {
let element: JSRef<Element> = ElementCast::from_ref(self);
- element.remove_attribute(ns!(""), &to_snake_case(name))
+ let name = Atom::from_slice(&to_snake_case(name));
+ element.remove_attribute(&ns!(""), &name);
}
}