aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorArnaud Marant <arnaudmarant@gmail.com>2016-04-15 21:11:58 +0200
committerArnaud Marant <arnaudmarant@gmail.com>2016-04-15 21:37:25 +0200
commit77f52d2eab66693684d9ecf53ffd4ddfc107f5e5 (patch)
tree6b82d18bf7aac049780e2185c9a46e7136ee2409 /components/script
parent44d7657487797575bb47aa295a13b496dd2cd69c (diff)
downloadservo-77f52d2eab66693684d9ecf53ffd4ddfc107f5e5.tar.gz
servo-77f52d2eab66693684d9ecf53ffd4ddfc107f5e5.zip
Issue #10574 Use the document base url in img
add a test with base path set to the resources path and an img with a cat and the reference directly to the image
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/htmlimageelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index 92291600ca3..c0a9e960385 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -369,7 +369,7 @@ impl VirtualMethods for HTMLImageElement {
&atom!("src") => {
self.update_image(mutation.new_value(attr).map(|value| {
// FIXME(ajeffrey): convert directly from AttrValue to DOMString
- (DOMString::from(&**value), window_from_node(self).get_url())
+ (DOMString::from(&**value), document_from_node(self).base_url())
}));
},
_ => {},