diff options
author | Patrick Shaughnessy <pshaughn@comcast.net> | 2019-12-13 18:39:11 -0500 |
---|---|---|
committer | Patrick Shaughnessy <pshaughn@comcast.net> | 2019-12-23 19:10:16 -0500 |
commit | 67e9fc8c0ad5dd54a9947a3048f588a8ea55458e (patch) | |
tree | d58cdfb0b8b819c7ab647fd9de470cb076961e03 /components/script/dom/document.rs | |
parent | 3e77a0ae09daf28c0a102add5a198bff08befe31 (diff) | |
download | servo-67e9fc8c0ad5dd54a9947a3048f588a8ea55458e.tar.gz servo-67e9fc8c0ad5dd54a9947a3048f588a8ea55458e.zip |
Attr is a Node, with consequences for many Node methods
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 94c9c8603c4..56b34053cf5 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -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, |