- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 25 Sep 2026 07:51:05 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1503@github.com>
Add a get the global algorithm for event listeners
Inner invoke needs the global of an event listener to set window.event, to skip
the listener when that global is not fully active, and to report an exception.
Using the callback's associated realm's global is wrong when the callback is not
the object the author supplied, as is the case for the event listener of an HTML
event handler.
Tests: https://github.com/web-platform-tests/wpt/pull/62967
HTML PR: (pending)
- [ ] At least two implementers are interested (and none opposed):
* …
* …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
* https://github.com/web-platform-tests/wpt/pull/62967
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
* Chromium: …
* Gecko: …
* WebKit: …
* Deno (only for aborting and events): …
* Node.js (only for aborting and events): …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [ ] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use.
(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/dom/pull/1503
-- Commit Summary --
* Add a get the global algorithm for event listeners
-- File Changes --
M dom.bs (20)
-- Patch Links --
https://github.com/whatwg/dom/pull/1503.patch
https://github.com/whatwg/dom/pull/1503.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1503
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1503@github.com>
Received on Friday, 25 September 2026 14:51:09 UTC