HTML <details>
Element Polyfill
<summary>Implemented Features</summary>
- Toggling on click
- Toggling with
element.open = true
andelement.open = false
- Toggling with
element.setAttribute("open", "")
andelement.removeAttribute("open")
- Toggling with <kbd>enter</kbd> and <kbd>space</kbd>
- Dispatching the
toggle
event - Focus support
<summary>Install</summary>
- Download ↝ details-element-polyfill.js
- npm ↝ details-element-polyfill
<summary>Fine Print</summary>
Licensed under the MIT License
© 2019 Javan Makhmali