mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
Call unregister_named_element rather update_idmap from before_remove_attr.
This commit is contained in:
parent
432e9cb3a7
commit
86899b6aaf
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ impl Element {
|
||||||
// "borrowed value does not live long enough"
|
// "borrowed value does not live long enough"
|
||||||
let mut doc = self.node.owner_doc();
|
let mut doc = self.node.owner_doc();
|
||||||
let doc = doc.get_mut();
|
let doc = doc.get_mut();
|
||||||
doc.update_idmap(abstract_self, None, Some(old_value));
|
doc.unregister_named_element(old_value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => ()
|
_ => ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue