aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r--components/script/dom/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs
index d3c157cf134..fa3fd87e004 100644
--- a/components/script/dom/macros.rs
+++ b/components/script/dom/macros.rs
@@ -99,7 +99,7 @@ macro_rules! make_url_or_base_getter(
let url = element.get_url_attribute(&atom!($htmlname));
if url.is_empty() {
let window = window_from_node(self);
- DOMString::from(window.get_url().serialize())
+ DOMString::from(window.get_url().into_string())
} else {
url
}