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")
- Dispatching the
toggle
event
Download
- details-element-polyfill.js (2.6 KB)