mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
script: Clear all associated event listeners when removing an event listener content attribute. (#39011)
This change allows callers of `remove_event_listener` to specify `None` for the `options` argument to skip phase (bubble/capture) checking (and remove either type of listener). Notably, this changes the HTMLElement `attribute_mutated` code to remove all event listeners rather than ones with just `capture: false`, which should be [correct behavior](https://html.spec.whatwg.org/multipage/webappapis.html#deactivate-an-event-handler). Testing: `mach try linux-wpt`: https://github.com/kotx/servo/actions/runs/17313405730 Fixes: https://github.com/servo/servo/issues/38742 --------- Signed-off-by: Kot <kot@kot.pink>
This commit is contained in:
parent
4a4a615eb7
commit
2e1b2e7260
3 changed files with 5 additions and 17 deletions
|
@ -1,3 +0,0 @@
|
|||
[event-handler-removal.window.html]
|
||||
[Event handler set through content attribute should be deactivated when the content attribute is removed.]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue