diff options
author | nupurbaghel <nupurbaghel@gmail.com> | 2018-08-25 16:43:06 +0000 |
---|---|---|
committer | nupurbaghel <nupurbaghel@gmail.com> | 2018-09-01 08:49:49 +0000 |
commit | d7cb68cb84ecd72f6ed5f208b3a12e57fb24616b (patch) | |
tree | fea46f216fe9ed918a11583264e1ed26f59d51c6 /components/script/dom | |
parent | 577830de909dd692f2d178d139984f45bbf929c3 (diff) | |
download | servo-d7cb68cb84ecd72f6ed5f208b3a12e57fb24616b.tar.gz servo-d7cb68cb84ecd72f6ed5f208b3a12e57fb24616b.zip |
correct currentSrc function
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/htmlimageelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index 7261f34b8ca..f540f8e9741 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -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(""), } } |