mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Only run update steps if token was found
This commit is contained in:
parent
221b099db4
commit
0b6fa8f0f3
2 changed files with 2 additions and 7 deletions
|
@ -158,9 +158,9 @@ impl DOMTokenListMethods for DOMTokenList {
|
|||
} else {
|
||||
atoms.remove(pos);
|
||||
}
|
||||
// Step 5.
|
||||
self.element.set_atomic_tokenlist_attribute(&self.local_name, atoms);
|
||||
}
|
||||
// Step 5.
|
||||
self.element.set_atomic_tokenlist_attribute(&self.local_name, atoms);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue