Implement Attr#nodeValue

Fixes #4047
This commit is contained in:
Matthew Rasmus 2014-11-20 12:52:47 -08:00
parent 133b523d2b
commit 73721cd189
2 changed files with 9 additions and 0 deletions

View file

@ -152,6 +152,14 @@ impl<'a> AttrMethods for JSRef<'a, Attr> {
self.SetValue(value)
}
fn NodeValue(self) -> DOMString {
self.Value()
}
fn SetNodeValue(self, value: DOMString) {
self.SetValue(value)
}
fn Name(self) -> DOMString {
self.name.as_slice().to_string()
}

View file

@ -15,6 +15,7 @@ interface Attr {
readonly attribute DOMString name;
attribute DOMString value;
attribute DOMString textContent; // alias of .value
attribute DOMString nodeValue; // alias of .value
readonly attribute Element? ownerElement;