diff options
Diffstat (limited to 'components/script/dom/attr.rs')
-rw-r--r-- | components/script/dom/attr.rs | 8 |
1 files changed, 8 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() } |