diff options
Diffstat (limited to 'components/script/dom/attr.rs')
-rw-r--r-- | components/script/dom/attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/attr.rs b/components/script/dom/attr.rs index 5df12e5aa63..88384aabe5f 100644 --- a/components/script/dom/attr.rs +++ b/components/script/dom/attr.rs @@ -274,7 +274,7 @@ impl<'a> AttrHelpers<'a> for JSRef<'a, Attr> { } fn owner(self) -> Option<Temporary<Element>> { - self.owner.get().map(Temporary::new) + self.owner.get().map(Temporary::from_rooted) } fn summarize(self) -> AttrInfo { |