aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/attr.rs8
-rw-r--r--components/script/dom/webidls/Attr.webidl1
2 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/attr.rs b/components/script/dom/attr.rs
index 95e05f8e79d..79f82f37aef 100644
--- a/components/script/dom/attr.rs
+++ b/components/script/dom/attr.rs
@@ -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()
}
diff --git a/components/script/dom/webidls/Attr.webidl b/components/script/dom/webidls/Attr.webidl
index 3c7478c3851..356bc7ed26e 100644
--- a/components/script/dom/webidls/Attr.webidl
+++ b/components/script/dom/webidls/Attr.webidl
@@ -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;