Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javan/details-element-polyfill
<details>
https://github.com/javan/details-element-polyfill
html5 javascript polyfill
Last synced: 13 days ago
JSON representation
<details>
- Host: GitHub
- URL: https://github.com/javan/details-element-polyfill
- Owner: javan
- License: mit
- Created: 2016-08-22T15:17:45.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T04:19:36.000Z (over 1 year ago)
- Last Synced: 2024-05-01T23:21:23.921Z (7 months ago)
- Topics: html5, javascript, polyfill
- Language: JavaScript
- Homepage:
- Size: 1000 KB
- Stars: 227
- Watchers: 8
- Forks: 26
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [HTML `` Element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) Polyfill
Implemented Features
* Toggling on click
* Toggling with `element.open = true` and `element.open = false`
* Toggling with `element.setAttribute("open", "")` and `element.removeAttribute("open")`
* Toggling with enter and space
* Dispatching the [`toggle` event](http://www.w3schools.com/jsref/event_ontoggle.asp)
* Focus supportInstall
* Download **_↝_ [details-element-polyfill.js](https://raw.githubusercontent.com/javan/details-element-polyfill/master/dist/details-element-polyfill.js)**
* npm **_↝_ [details-element-polyfill](https://www.npmjs.com/package/details-element-polyfill)**Browser Support
[![CI Status](https://saucelabs.com/browser-matrix/details-polyfill.svg)](https://saucelabs.com/u/details-polyfill)
Fine Print
Licensed under the [MIT License](LICENSE)
© 2019 Javan Makhmali