Skip to content

feat(dom.focusDisabled,dom.isVisibleForScreenreader): support the inert attribute#3857

Merged
straker merged 3 commits intodevelopfrom
inert
Jan 19, 2023
Merged

feat(dom.focusDisabled,dom.isVisibleForScreenreader): support the inert attribute#3857
straker merged 3 commits intodevelopfrom
inert

Conversation

@straker
Copy link
Copy Markdown
Contributor

@straker straker commented Jan 16, 2023

Also adds dom.isInert.

Closes #3448

@straker straker requested a review from a team as a code owner January 16, 2023 21:27
@straker straker changed the title feat(dom.focus-disabled,dom.is-visible-for-screenreader): support the inert attribute feat(dom.focusDisabled,dom.isVisibleForScreenreader): support the inert attribute Jan 16, 2023
Copy link
Copy Markdown
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, you know what, we should have some integration tests for this.

I'm also wondering if we should do anything about firefox's lack of support. Thoughts?

@straker
Copy link
Copy Markdown
Contributor Author

straker commented Jan 17, 2023

Firefox has it behind a flag, so we could either assume it'll get released eventually or use 'inert' in HTMLElement.prototype to detect support for inert before returning true/false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support the HTML inert attribute

2 participants