Skip to content

Commit

Permalink
Fix upstream merge fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcallister committed Sep 20, 2014
1 parent dc86e83 commit af96e8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/script/dom/htmloptionelement.rs
Expand Up @@ -78,17 +78,17 @@ 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();
v.connect(" ")
}

// 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))
}
}
Expand Down

0 comments on commit af96e8e

Please sign in to comment.