mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
script: Fix the logic for mutation observer attributes.
This commit is contained in:
parent
073629076f
commit
39e647de06
2 changed files with 2 additions and 13 deletions
|
@ -132,8 +132,8 @@ impl MutationObserver {
|
|||
if *namespace != ns!() {
|
||||
continue;
|
||||
}
|
||||
if registered.options.attribute_filter.iter()
|
||||
.find(|s| &**s == &**name).is_some() {
|
||||
if !registered.options.attribute_filter.iter()
|
||||
.any(|s| &**s == &**name) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
[MutationObserver-attributes.html]
|
||||
type: testharness
|
||||
[attributes/attributeFilter Element.id/Element.className: update mutation]
|
||||
expected: FAIL
|
||||
|
||||
[attributes/attributeFilter Element.id/Element.className: multiple filter update mutation]
|
||||
expected: FAIL
|
||||
|
||||
[attributeFilter alone Element.id/Element.className: multiple filter update mutation]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue