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") => {
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());
}
}
},
_ => {},