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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/domtokenlist.rs b/components/script/dom/domtokenlist.rs
index 119028f6552..2e118089697 100644
--- a/components/script/dom/domtokenlist.rs
+++ b/components/script/dom/domtokenlist.rs
@@ -81,7 +81,7 @@ impl<'a> DOMTokenListMethods for JSRef<'a, DOMTokenList> {
let attr = attr.r();
let value = attr.value();
value.tokens().and_then(|tokens| {
- tokens.get(index as usize).map(|token| token.as_slice().to_owned())
+ tokens.get(index as usize).map(|token| (**token).to_owned())
})
})
}