aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/location.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/location.rs')
-rw-r--r--components/script/dom/location.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/location.rs b/components/script/dom/location.rs
index 4f4c44e4015..614b623e5b9 100644
--- a/components/script/dom/location.rs
+++ b/components/script/dom/location.rs
@@ -47,6 +47,10 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
UrlHelper::Href(&self.page.get_url())
}
+ fn Stringify(self) -> DOMString {
+ self.Href()
+ }
+
fn Search(self) -> DOMString {
UrlHelper::Search(&self.page.get_url())
}