Merge pull request #2824 from jgraham/remove_attribute_str

Make Element.remove_attribute take &str instead of DOMString; r=Ms2ger
This commit is contained in:
Ms2ger 2014-07-13 20:18:36 +02:00
commit 91de702edb
2 changed files with 12 additions and 11 deletions

View file

@ -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(_), _) => {