mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +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
|
@ -83,7 +83,7 @@ impl<'a> HTMLIFrameElementHelpers for JSRef<'a, HTMLIFrameElement> {
|
|||
|
||||
fn get_url(self) -> Option<Url> {
|
||||
let element: JSRef<Element> = ElementCast::from_ref(self);
|
||||
element.get_attribute(ns!(""), &atom!("src")).root().and_then(|src| {
|
||||
element.get_attribute(&ns!(""), &atom!("src")).root().and_then(|src| {
|
||||
let url = src.r().value();
|
||||
if url.as_slice().is_empty() {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue