diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/htmloptionelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmloptionelement.rs b/components/script/dom/htmloptionelement.rs index 156749fb623..31562953cd9 100644 --- a/components/script/dom/htmloptionelement.rs +++ b/components/script/dom/htmloptionelement.rs @@ -78,8 +78,8 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> { } // http://www.whatwg.org/html/#dom-option-text - fn Text(&self) -> DOMString { - let node: JSRef<Node> = NodeCast::from_ref(*self); + fn Text(self) -> DOMString { + let node: JSRef<Node> = NodeCast::from_ref(self); let mut content = String::new(); collect_text(&node, &mut content); let v: Vec<&str> = split_html_space_chars(content.as_slice()).collect(); @@ -87,8 +87,8 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> { } // http://www.whatwg.org/html/#dom-option-text - fn SetText(&self, value: DOMString) { - let node: JSRef<Node> = NodeCast::from_ref(*self); + fn SetText(self, value: DOMString) { + let node: JSRef<Node> = NodeCast::from_ref(self); node.SetTextContent(Some(value)) } } |