Skip to content

Commit

Permalink
Add mention of text selection prevention in inert attribute doc (#3…
Browse files Browse the repository at this point in the history
…3612)

Co-authored-by: sideshowbarker <mike@w3.org>
  • Loading branch information
amirhoseinsalimi and sideshowbarker committed May 15, 2024
1 parent 55a1f69 commit 2f8e24c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/en-us/web/html/global_attributes/inert/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Specifically, `inert` does the following:

- Prevents the {{domxref("Element/click_event", "click")}} event from being fired when the user clicks on the element.
- Prevents the {{domxref("Element/focus_event", "focus")}} event from being raised by preventing the element from gaining focus.
- Prevents any contents of the element from being found/matched during any use of the browser's find-in-page feature.
- Prevents users from selecting text within the element — akin to using the CSS property {{domxref("CSS/user-select", "user-select")}} to disable text selection.
- Prevents users from editing any contents of the element that are otherwise editable.
- Hides the element and its content from assistive technologies by excluding them from the accessibility tree.

```html
Expand Down

0 comments on commit 2f8e24c

Please sign in to comment.