aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domtokenlist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/domtokenlist.rs')
-rw-r--r--components/script/dom/domtokenlist.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/domtokenlist.rs b/components/script/dom/domtokenlist.rs
index 7ee5e632900..0a42db03d5d 100644
--- a/components/script/dom/domtokenlist.rs
+++ b/components/script/dom/domtokenlist.rs
@@ -159,4 +159,9 @@ impl<'a> DOMTokenListMethods for JSRef<'a, DOMTokenList> {
}
}
}
+
+ // https://dom.spec.whatwg.org/#stringification-behavior
+ fn Stringifier(self) -> DOMString {
+ self.element.root().r().get_string_attribute(&self.local_name)
+ }
}