auto merge of #4050 : mttr/servo/implement_attr_nodevalue, r=Ms2ger

Fixes #4047, and updates to expect tests that are now passing because of it.
This commit is contained in:
bors-servo 2014-11-20 17:18:29 -07:00
commit c23bfdf1c5
4 changed files with 23 additions and 14 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;