Repository navigation
Conversation
commit: |
cowboyd
marked this pull request as ready for review
December 1, 2026 19:15
cowboyd
force-pushed
the
dom-focus
branch
2 times, most recently
from
December 2, 2026 17:26
c8b63d8 to
77fac71
Compare
cowboyd
marked this pull request as draft
December 2, 2026 22:22
cowboyd
force-pushed
the
dom-focus
branch
4 times, most recently
from
December 5, 2026 19:13
9c8d7a8 to
1f0081a
Compare
dreyfus92
approved these changes
Dec 5, 2026
dreyfus92
left a comment
Member
There was a problem hiding this comment.
left a question, but lgtm 👀
| return this.hasAttributeNS(null, 'inert'); | ||
| } | ||
|
|
||
| set inert(value: boolean) { |
Member
There was a problem hiding this comment.
so if the focused element or an ancestor becomes inert, activeElement still points at it. browsers drop focus back to body here, inert/dynamic-inert-on-focused-element.html covers it. follow-up?
Contributor
Author
There was a problem hiding this comment.
Yes, We should add it as a follow-up.
natemoo-re
approved these changes
Dec 5, 2026
5 of 12 tasks
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?
Reflects HTMLElement.inert and prevents elements inside inert subtrees from receiving focus.
Type of change
Checklist
pnpm test)pnpm format)AI-generated code disclosure