details-element-polyfill
v2.4.0 html details polyfill
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
npm i details-element-polyfill
Metadata
- MIT
- Whatever
- Javan Makhmali
- released 8/13/2019