Pass an Atom to Element::create.

This commit is contained in:
Ms2ger 2014-11-14 16:19:24 +01:00 committed by Tamir Duberstein
parent e8b02acb1d
commit 9435565f85
4 changed files with 8 additions and 8 deletions

View file

@ -76,15 +76,15 @@ use dom::htmlulistelement::HTMLUListElement;
use dom::htmlunknownelement::HTMLUnknownElement;
use dom::htmlvideoelement::HTMLVideoElement;
use util::str::DOMString;
use string_cache::QualName;
use string_cache::{Atom, QualName};
use std::borrow::ToOwned;
pub fn create_element(name: QualName, prefix: Option<DOMString>,
pub fn create_element(name: QualName, prefix: Option<Atom>,
document: JSRef<Document>, creator: ElementCreator)
-> Temporary<Element> {
let prefix = prefix.map(|p| (*p).to_owned());
if name.ns != ns!(HTML) {
return Element::new((*name.local).to_owned(), name.ns, prefix, document);
}