mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make Element::get_attribute() take its namespace by reference
This commit is contained in:
parent
dd88bcddc4
commit
254207730e
12 changed files with 33 additions and 33 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue