mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +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)
|
||||
}
|
||||
|
||||
fn NodeValue(self) -> DOMString {
|
||||
self.Value()
|
||||
}
|
||||
|
||||
fn SetNodeValue(self, value: DOMString) {
|
||||
self.SetValue(value)
|
||||
}
|
||||
|
||||
fn Name(self) -> DOMString {
|
||||
self.name.as_slice().to_string()
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue