mirror of
https://github.com/servo/servo.git
synced 2025-07-25 16:20:36 +01:00
parent
133b523d2b
commit
73721cd189
2 changed files with 9 additions and 0 deletions
|
@ -152,6 +152,14 @@ impl<'a> AttrMethods for JSRef<'a, Attr> {
|
||||||
self.SetValue(value)
|
self.SetValue(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn NodeValue(self) -> DOMString {
|
||||||
|
self.Value()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn SetNodeValue(self, value: DOMString) {
|
||||||
|
self.SetValue(value)
|
||||||
|
}
|
||||||
|
|
||||||
fn Name(self) -> DOMString {
|
fn Name(self) -> DOMString {
|
||||||
self.name.as_slice().to_string()
|
self.name.as_slice().to_string()
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ interface Attr {
|
||||||
readonly attribute DOMString name;
|
readonly attribute DOMString name;
|
||||||
attribute DOMString value;
|
attribute DOMString value;
|
||||||
attribute DOMString textContent; // alias of .value
|
attribute DOMString textContent; // alias of .value
|
||||||
|
attribute DOMString nodeValue; // alias of .value
|
||||||
|
|
||||||
readonly attribute Element? ownerElement;
|
readonly attribute Element? ownerElement;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue