eligrey/classList.js
Cross-browser element.classList observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5804
- days_rel: n/a
- days_push: 2876
- n_releases_24m: 0
Adoption not part of the score
1103 stars · 226 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A cross-browser JavaScript polyfill that fully implements the element.classList DOM API. It enables classList support in browsers that lack it, working everywhere except IE 7 and earlier.
Use cases
- add classList support to legacy browsers
- polyfill element.classList in old Internet Explorer
- use classList API consistently across browsers
- manipulate CSS classes via DOM in older browsers
- shim classList for IE 8-9 compatibility
When to choose
- you must support legacy browsers like IE 8-11 that lack full classList support
- you want a tiny, dependency-free polyfill served from a CDN
- your codebase relies on classList but targets old browsers
When to avoid
- you only target modern browsers that natively support classList
- you need a broader DOM polyfill suite rather than a single API shim
- you need IE 7 or earlier support
Facets
library · maturity maintenance
ui-components web-development frontend browser-extensions browser cross-platform polyfill shim dom classlist legacy-browser-support
2 sources
- readme: https://github.com/eligrey/classList.js · fetched 2026-08-28 · b1230f05a621
- registry_npm: https://registry.npmjs.org/classlist.js · fetched 2026-08-29 · 3b3c5bb3c466
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| eligrey/classList.js | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="eligrey/classList.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem