mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Ensure that it's safe to modify the DOM node pointers before doing so. Fixes #1224.
This commit is contained in:
parent
7dbabdd9e4
commit
f9f9c42ab7
3 changed files with 20 additions and 7 deletions
|
@ -212,6 +212,8 @@ impl<'self> Element {
|
|||
None => {}
|
||||
}
|
||||
|
||||
self.node.wait_until_safe_to_modify_dom();
|
||||
|
||||
// FIXME: reduce the time of `value.clone()`.
|
||||
let win = self.node.owner_doc().document().window;
|
||||
let new_attr = Attr::new_ns(win, local_name.clone(), value.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue