mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix upstream merge fallout
This commit is contained in:
parent
dc86e83654
commit
af96e8e409
1 changed files with 4 additions and 4 deletions
|
@ -78,8 +78,8 @@ impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://www.whatwg.org/html/#dom-option-text
|
// http://www.whatwg.org/html/#dom-option-text
|
||||||
fn Text(&self) -> DOMString {
|
fn Text(self) -> DOMString {
|
||||||
let node: JSRef<Node> = NodeCast::from_ref(*self);
|
let node: JSRef<Node> = NodeCast::from_ref(self);
|
||||||
let mut content = String::new();
|
let mut content = String::new();
|
||||||
collect_text(&node, &mut content);
|
collect_text(&node, &mut content);
|
||||||
let v: Vec<&str> = split_html_space_chars(content.as_slice()).collect();
|
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
|
// http://www.whatwg.org/html/#dom-option-text
|
||||||
fn SetText(&self, value: DOMString) {
|
fn SetText(self, value: DOMString) {
|
||||||
let node: JSRef<Node> = NodeCast::from_ref(*self);
|
let node: JSRef<Node> = NodeCast::from_ref(self);
|
||||||
node.SetTextContent(Some(value))
|
node.SetTextContent(Some(value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue