mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +01:00
correct currentSrc function
This commit is contained in:
parent
577830de90
commit
d7cb68cb84
3 changed files with 2 additions and 65 deletions
|
@ -1147,9 +1147,9 @@ impl HTMLImageElementMethods for HTMLImageElement {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-img-currentsrc
|
||||
fn CurrentSrc(&self) -> DOMString {
|
||||
let ref url = self.current_request.borrow().source_url;
|
||||
let ref url = self.current_request.borrow().parsed_url;
|
||||
match *url {
|
||||
Some(ref url) => url.clone(),
|
||||
Some(ref url) => DOMString::from_string(url.clone().into_string()),
|
||||
None => DOMString::from(""),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue