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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/domtokenlist.rs b/components/script/dom/domtokenlist.rs
index 23bfb7ed300..6c1c931c407 100644
--- a/components/script/dom/domtokenlist.rs
+++ b/components/script/dom/domtokenlist.rs
@@ -38,14 +38,14 @@ impl DOMTokenList {
}
fn attribute(&self) -> Option<Root<Attr>> {
- self.element.get_attribute(&ns!(""), &self.local_name)
+ self.element.get_attribute(&ns!(), &self.local_name)
}
fn check_token_exceptions(&self, token: &str) -> Fallible<Atom> {
match token {
"" => Err(Error::Syntax),
slice if slice.find(HTML_SPACE_CHARACTERS).is_some() => Err(Error::InvalidCharacter),
- slice => Ok(Atom::from_slice(slice)),
+ slice => Ok(Atom::from(slice)),
}
}
}