mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +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
|
@ -3685,7 +3685,7 @@ impl DocumentMethods for Document {
|
|||
let value = AttrValue::String("".to_owned());
|
||||
|
||||
Ok(Attr::new(
|
||||
&self.window,
|
||||
&self,
|
||||
name.clone(),
|
||||
value,
|
||||
name,
|
||||
|
@ -3705,7 +3705,7 @@ impl DocumentMethods for Document {
|
|||
let value = AttrValue::String("".to_owned());
|
||||
let qualified_name = LocalName::from(qualified_name);
|
||||
Ok(Attr::new(
|
||||
&self.window,
|
||||
&self,
|
||||
local_name,
|
||||
value,
|
||||
qualified_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue