aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlbodyelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmlbodyelement.rs')
-rw-r--r--src/components/script/dom/htmlbodyelement.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/dom/htmlbodyelement.rs b/src/components/script/dom/htmlbodyelement.rs
index 4c28b446524..3a4b9440ff4 100644
--- a/src/components/script/dom/htmlbodyelement.rs
+++ b/src/components/script/dom/htmlbodyelement.rs
@@ -57,7 +57,7 @@ pub trait HTMLBodyElementMethods {
impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
fn Text(&self) -> DOMString {
- ~""
+ "".to_owned()
}
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
@@ -65,7 +65,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
}
fn Link(&self) -> DOMString {
- ~""
+ "".to_owned()
}
fn SetLink(&self, _link: DOMString) -> ErrorResult {
@@ -73,7 +73,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
}
fn VLink(&self) -> DOMString {
- ~""
+ "".to_owned()
}
fn SetVLink(&self, _v_link: DOMString) -> ErrorResult {
@@ -81,7 +81,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
}
fn ALink(&self) -> DOMString {
- ~""
+ "".to_owned()
}
fn SetALink(&self, _a_link: DOMString) -> ErrorResult {
@@ -89,7 +89,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
}
fn BgColor(&self) -> DOMString {
- ~""
+ "".to_owned()
}
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
@@ -97,7 +97,7 @@ impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
}
fn Background(&self) -> DOMString {
- ~""
+ "".to_owned()
}
fn SetBackground(&self, _background: DOMString) -> ErrorResult {