aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/document.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-07-13 20:18:36 +0200
committerMs2ger <ms2ger@gmail.com>2014-07-13 20:18:36 +0200
commit91de702edb50227b21626197a164c2b63cf4cc55 (patch)
tree356c0b4f94f544c12aa64c65b9d2389f00f7e8f0 /src/components/script/dom/document.rs
parentf99d8cef9ffbef888685525772f2309531202079 (diff)
parent130cf760ee1dac23a87969a5c72bbb6b02ae8f75 (diff)
downloadservo-91de702edb50227b21626197a164c2b63cf4cc55.tar.gz
servo-91de702edb50227b21626197a164c2b63cf4cc55.zip
Merge pull request #2824 from jgraham/remove_attribute_str
Make Element.remove_attribute take &str instead of DOMString; r=Ms2ger
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r--src/components/script/dom/document.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs
index 6ac1d046677..43af4e996d9 100644
--- a/src/components/script/dom/document.rs
+++ b/src/components/script/dom/document.rs
@@ -438,7 +438,8 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
QName => {}
}
- let (prefix_from_qname, local_name_from_qname) = get_attribute_parts(qualified_name);
+ let (prefix_from_qname,
+ local_name_from_qname) = get_attribute_parts(qualified_name.as_slice());
match (&ns, prefix_from_qname.clone(), local_name_from_qname.as_slice()) {
// throw if prefix is not null and namespace is null
(&namespace::Null, Some(_), _) => {