Use the base URL to parse style attributes.

This commit is contained in:
Ms2ger 2015-08-06 18:03:35 +02:00
parent 7f2b21c06e
commit bd31b51a87
2 changed files with 1 additions and 4 deletions

View file

@ -1558,7 +1558,7 @@ impl<'a> VirtualMethods for &'a Element {
&atom!("style") => {
// Modifying the `style` attribute might change style.
let doc = document_from_node(*self);
let base_url = doc.r().url();
let base_url = doc.r().base_url();
let value = attr.value();
let style = Some(parse_style_attribute(&value, &base_url));
*self.style_attribute.borrow_mut() = style;

View file

@ -1,3 +0,0 @@
[style-attr-urls-002.htm]
type: reftest
expected: FAIL