implement the setter for Node.nodeValue.(fixes #1825)

This commit is contained in:
lpy 2014-03-06 13:23:31 +08:00
parent 07b8c9bf88
commit 0130392420
2 changed files with 28 additions and 2 deletions

View file

@ -924,9 +924,16 @@ impl Node {
}
// http://dom.spec.whatwg.org/#dom-node-nodevalue
pub fn SetNodeValue(&mut self, _abstract_self: &JS<Node>, _val: Option<DOMString>)
pub fn SetNodeValue(&mut self, abstract_self: &mut JS<Node>, val: Option<DOMString>)
-> ErrorResult {
// FIXME (#1825) implement.
match self.type_id {
CommentNodeTypeId |
TextNodeTypeId |
ProcessingInstructionNodeTypeId => {
self.SetTextContent(abstract_self, val);
}
_ => {}
}
Ok(())
}