mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Pass an Atom to Element::create.
This commit is contained in:
parent
e8b02acb1d
commit
9435565f85
4 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue