HTML <details> Element Polyfill
Implemented Features
- Toggling on click
- Toggling with
element.open = trueandelement.open = false - Toggling with
element.setAttribute("open", "")andelement.removeAttribute("open") - Toggling with enter and space
- Dispatching the
toggleevent - Focus support
Install
- Download ↝ details-element-polyfill.js
- npm ↝ details-element-polyfill