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