mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Pass the correct attribute to handle_stylesheet_url.
This commit is contained in:
parent
361e41f0e7
commit
d207919a02
2 changed files with 3 additions and 4 deletions
|
@ -154,7 +154,9 @@ impl VirtualMethods for HTMLLinkElement {
|
|||
},
|
||||
&atom!("media") => {
|
||||
if string_is_stylesheet(&rel) {
|
||||
self.handle_stylesheet_url(&attr.value());
|
||||
if let Some(href) = self.upcast::<Element>().get_attribute(&ns!(), &atom!("href")) {
|
||||
self.handle_stylesheet_url(&href.value());
|
||||
}
|
||||
}
|
||||
},
|
||||
_ => {},
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[stylesheet-media.html]
|
||||
type: reftest
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue