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

@ -70,7 +70,7 @@ use std::iter::{FilterMap, Peekable};
use std::mem;
use std::sync::Arc;
use uuid;
use string_cache::QualName;
use string_cache::{Atom, QualName};
//
// The basic Node structure
@ -1735,7 +1735,7 @@ impl Node {
local: element.local_name().clone()
};
let element = Element::create(name,
element.prefix().as_ref().map(|p| (**p).to_owned()),
element.prefix().as_ref().map(|p| Atom::from_slice(&p)),
document.r(), ElementCreator::ScriptCreated);
NodeCast::from_temporary(element)
},