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