mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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 {
|
} else {
|
||||||
atoms.remove(pos);
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[DOMTokenList.html]
|
|
||||||
type: testharness
|
|
||||||
[replace on DOMTokenList must not enqueue an attributeChanged reaction when the token to replace does not exist in the attribute]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue