Repository navigation
Conversation
commit: |
cowboyd
marked this pull request as ready for review
November 30, 2026 04:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Establishes the event-dispatch foundation needed to unlock the focus and keyboard-navigation WPTs. Many of the these tests use capture listeners on ancestors to observe non-bubbling
focusandblurevents and verify the sequence produced by keyboard navigation, so to not have capture support means that we have to either forego that test coverage, or try to patch the upstream WPT.However, this does retain the requirement of using the global
EventandEventTargetclasses so thatinstanceofchecks continue to work globally.Some of the older WPT fixtures require
document.createEvent()andinitEvent(), so those have been added as well.Focus and keyboard-navigation test groups this foundation unlocks
uievents/focusevents/blur-relatedTarget.htmlandfocus/focus-sync-when-blur.html.inert/inert-label-focus.htmlanddom/nodes/insertion-removing-steps/blur-event.window.js.uievents/constructors/event-getmodifierstate.htmlanduievents/keyboard/keydown-input-events.html.focus-tabindex-positive.htmlandfocus-tabindex-order.htmlunderhtml/interaction/focus/sequential-focus-navigation-and-the-tabindex-attribute/. Both directly depend on capture listeners for focus and keyboard events.html/interaction/focus/:tab-table-caption.html,sequential-focus-navigation-after-disabled.html, andsequential-focus-navigation-starting-point.tentative.html.Type of change
Checklist
pnpm test)pnpm format)AI-generated code disclosure