aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlanchorelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-04-04 17:29:23 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-04-06 14:31:27 +0200
commit254207730e75f036d6f5182cdb37b230b47a101f (patch)
tree613c8e3f8e29a761626b8153847d54c47df3d607 /components/script/dom/htmlanchorelement.rs
parentdd88bcddc4ab0f4f774ee8e3e5785ed8a7a96c64 (diff)
downloadservo-254207730e75f036d6f5182cdb37b230b47a101f.tar.gz
servo-254207730e75f036d6f5182cdb37b230b47a101f.zip
Make Element::get_attribute() take its namespace by reference
Diffstat (limited to 'components/script/dom/htmlanchorelement.rs')
-rw-r--r--components/script/dom/htmlanchorelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs
index 0856aae3c80..1219692cd9b 100644
--- a/components/script/dom/htmlanchorelement.rs
+++ b/components/script/dom/htmlanchorelement.rs
@@ -122,7 +122,7 @@ impl<'a> Activatable for JSRef<'a, HTMLAnchorElement> {
//TODO: Step 3. Handle <img ismap/>.
//TODO: Step 4. Download the link is `download` attribute is set.
let element: JSRef<Element> = ElementCast::from_ref(*self);
- let attr = element.get_attribute(ns!(""), &atom!("href")).root();
+ let attr = element.get_attribute(&ns!(""), &atom!("href")).root();
match attr {
Some(ref href) => {
let value = href.r().Value();