Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"escape inertness" mentioned but never explained how to #34619

Open
mangelozzi opened this issue Jul 4, 2024 · 1 comment
Open

"escape inertness" mentioned but never explained how to #34619

mangelozzi opened this issue Jul 4, 2024 · 1 comment
Labels
Content:HTML Hypertext Markup Language docs help wanted If you know something about this topic, we would love your help!

Comments

@mangelozzi
Copy link

mangelozzi commented Jul 4, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inert

What specific section or headline is this issue about?

The intro

What information was incorrect, unhelpful, or incomplete?

With the inert attribute, all of the element's flat tree descendants (such as modal <dialog>s) that don't otherwise escape inertness are ignored.

What did you expect to see?

An explanation of how to "escape inertness". Neither this page, nor any of the "See Also" explain how to "escape inertness". If one wish to make everything inert except a certain elements and it's children, I imagine you would apply inert to the document then escape it somehow...

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

Thanks, these docs are very helpful!

MDN metadata

Page report details
@mangelozzi mangelozzi added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jul 4, 2024
@github-actions github-actions bot added the Content:HTML Hypertext Markup Language docs label Jul 4, 2024
@Josh-Cena
Copy link
Member

Relevant spec:

A Document document is blocked by a modal dialog subject if subject is the topmost dialog element in document's top layer. While document is so blocked, every node that is connected to document, with the exception of the subject element and its flat tree descendants, must become inert.

subject can additionally become inert via the inert attribute, but only if specified on subject itself (i.e., subject escapes inertness of ancestors); subject's flat tree descendants can become inert in a similar fashion.

The inert attribute is a boolean attribute that indicates, by its presence, that the element and all its flat tree descendants which don't otherwise escape inertness (such as modal dialogs) are to be made inert by the user agent.

@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs help wanted If you know something about this topic, we would love your help!
2 participants