mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #10634 - amarant:10574-image-document-base, r=metajack
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 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10634) <!-- Reviewable:end -->
This commit is contained in:
commit
3d4416e1b0
5 changed files with 37 additions and 1 deletions
|
@ -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())
|
||||
}));
|
||||
},
|
||||
_ => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue