Gathering detailed insights and metrics for dom4
Gathering detailed insights and metrics for dom4
Gathering detailed insights and metrics for dom4
Gathering detailed insights and metrics for dom4
npm install dom4
Typescript
Module System
Node Version
NPM Version
99.9
Supply Chain
95
Quality
76
Maintenance
100
Vulnerability
100
License
JavaScript (91.8%)
HTML (5.39%)
Makefile (2.81%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
931 Stars
151 Commits
46 Forks
38 Watchers
2 Branches
6 Contributors
Updated on Apr 27, 2025
Latest Version
2.1.6
Package Id
dom4@2.1.6
Size
14.01 kB
NPM Version
6.14.8
Node Version
15.1.0
Published on
Nov 05, 2020
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A fully tested and covered polyfill for new DOM Level 4 entries
Many thanks to cdnjs for hosting this script. Following an example on how to include it.
1<script 2 src="//cdnjs.cloudflare.com/ajax/libs/dom4/2.0.0/dom4.js" 3>/* DOM4 */</script>
Both query
and queryAll
have been removed, while CSS :scope
selector has been added.
This is a fully tested and covered polyfill for both new DOM Level 4 parentNode entries:
And for new DOM Level 4 childNode entries:
The implemented test is conform to current specifications.
Other fixes/standardized behaviors include:
KeyboardEvent
, MouseEvent
and the latest way to create new Event('type')
:scope
selector for any HTML Element (no document
since useless, sorry)requestAnimationFrame
and cancelAnimationFrame
are polyfilled too but the least legacy fallback to setTimeout does not support accurate timing and doesn't slow down execution with that logic. Feel free to load upfront other polyfills if needed.If you need other polyfills too, have a look at another DOM-shim repo.
Theoretically compatible with all browsers you know that are truly used these days, here a list:
It's way easier if you tell me which browser in a current relevant market share is not supported :-)
For IE8 only it's recommended to include ie8 script before dom4
or CustomEvent
, addEventListener
, and dispatchEvent
won't work as expected.
The minified version is here, while the max one here. If you want to test directly try this page, it should be green.
If you found a bug, want to contribute or have any questions feel free to fill an issue or pull request, and help us to improve the Dom4
Dom4 Code released under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 3/26 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More