@soomo/wicg-inert
Version:
A polyfill for the proposed inert API
32 lines (21 loc) • 737 B
HTML
<!--
This work is licensed under the W3C Software and Document License
(http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document).
-->
<div inert>
<button>Click Me</button>
<div id="fake-button" tabindex="0">Click me</div>
<a href="https://example.com">Clickable Link</a>
<input type="text">
<select>
<option selected>Select One</option>
</select>
<textarea></textarea>
<details id="details-no-summary">Some collapsed content goes here</details>
<details id="details-with-summary">
<summary>Collapsed Details</summary>
Some detailed content goes here
</details>
<div id="editable" contenteditable="true">Hello World</div>
</div>
<button id="non-inert">Non-inert button</button>