mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +01:00
correct failing tests
This commit is contained in:
parent
d7cb68cb84
commit
b1adf8ee8a
3 changed files with 11 additions and 4 deletions
|
@ -1150,7 +1150,13 @@ impl HTMLImageElementMethods for HTMLImageElement {
|
|||
let ref url = self.current_request.borrow().parsed_url;
|
||||
match *url {
|
||||
Some(ref url) => DOMString::from_string(url.clone().into_string()),
|
||||
None => DOMString::from(""),
|
||||
None => {
|
||||
let ref unparsed_url = self.current_request.borrow().source_url;
|
||||
match *unparsed_url {
|
||||
Some(ref url) => url.clone(),
|
||||
None => DOMString::from("")
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue