mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
Merge Attr::new_ns and Attr::new.
This commit is contained in:
parent
d665ad5a17
commit
ed18e4c948
3 changed files with 10 additions and 21 deletions
|
@ -286,8 +286,8 @@ impl AttributeHandlers for JS<Element> {
|
|||
None => {
|
||||
let node: JS<Node> = NodeCast::from(self);
|
||||
let doc = node.get().owner_doc().get();
|
||||
let new_attr = Attr::new_ns(&doc.window, local_name.clone(), value.clone(),
|
||||
name, namespace.clone(), prefix);
|
||||
let new_attr = Attr::new(&doc.window, local_name.clone(), value.clone(),
|
||||
name, namespace.clone(), prefix);
|
||||
self.get_mut().attrs.push(new_attr);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue