aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
diff options
context:
space:
mode:
authornupurbaghel <nupurbaghel@gmail.com>2018-08-25 16:43:06 +0000
committernupurbaghel <nupurbaghel@gmail.com>2018-09-01 08:49:49 +0000
commitd7cb68cb84ecd72f6ed5f208b3a12e57fb24616b (patch)
treefea46f216fe9ed918a11583264e1ed26f59d51c6 /components/script/dom/htmlimageelement.rs
parent577830de909dd692f2d178d139984f45bbf929c3 (diff)
downloadservo-d7cb68cb84ecd72f6ed5f208b3a12e57fb24616b.tar.gz
servo-d7cb68cb84ecd72f6ed5f208b3a12e57fb24616b.zip
correct currentSrc function
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r--components/script/dom/htmlimageelement.rs4
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(""),
}
}