Skip to content
Permalink
Browse files

Fix upstream merge fallout

  • Loading branch information
kmcallister committed Sep 20, 2014
1 parent dc86e83 commit af96e8e4093fd332467dab318ef08e4ced0503ad
Showing with 4 additions and 4 deletions.
  1. +4 −4 components/script/dom/htmloptionelement.rs
@@ -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))
}
}

0 comments on commit af96e8e

Please sign in to comment.
You can’t perform that action at this time.