Pass the correct attribute to handle_stylesheet_url.

This commit is contained in:
Ms2ger 2016-09-27 17:11:35 +02:00
parent 361e41f0e7
commit d207919a02
2 changed files with 3 additions and 4 deletions

View file

@ -154,7 +154,9 @@ impl VirtualMethods for HTMLLinkElement {
}, },
&atom!("media") => { &atom!("media") => {
if string_is_stylesheet(&rel) { 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());
}
} }
}, },
_ => {}, _ => {},

View file

@ -1,3 +0,0 @@
[stylesheet-media.html]
type: reftest
expected: FAIL