mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Attr is a Node, with consequences for many Node methods
This commit is contained in:
parent
3e77a0ae09
commit
67e9fc8c0a
9 changed files with 229 additions and 306 deletions
|
@ -1336,9 +1336,8 @@ impl Element {
|
|||
namespace: Namespace,
|
||||
prefix: Option<Prefix>,
|
||||
) {
|
||||
let window = window_from_node(self);
|
||||
let attr = Attr::new(
|
||||
&window,
|
||||
&self.node.owner_doc(),
|
||||
local_name,
|
||||
value,
|
||||
name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue