Gathering detailed insights and metrics for sane-domparser-error
Gathering detailed insights and metrics for sane-domparser-error
Gathering detailed insights and metrics for sane-domparser-error
Gathering detailed insights and metrics for sane-domparser-error
Provides sane parser errors for DOMParser and XHR
npm install sane-domparser-error
Typescript
Module System
Node Version
NPM Version
99
Supply Chain
77.2
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (98.41%)
HTML (1.59%)
Total Downloads
2,004,749
Last Day
1,524
Last Week
25,203
Last Month
90,418
Last Year
606,939
17 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Dec 05, 2018
Minified
Minified + Gzipped
Latest Version
0.2.0
Package Id
sane-domparser-error@0.2.0
Size
2.78 kB
NPM Version
2.12.1
Node Version
0.12.7
Published on
Sep 11, 2015
Cumulative downloads
Total Downloads
Last Day
-21%
1,524
Compared to previous day
Last Week
8.9%
25,203
Compared to previous week
Last Month
102.9%
90,418
Compared to previous month
Last Year
54.2%
606,939
Compared to previous year
5
Provides sane and machine readable parser errors for DOMParser and XHR (with XMLHttpRequest.responseType = 'document'
).
DOMParser and XHR currently do not throw an exception if a document could not be parsed, but instead return an error document.
Instead of
1<parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml"> 2 XML Parsing Error: prefix not bound to a namespace\n Location: file:////tmp/index.html 3 Line Number 1, Column 57: 4 <sourcetext> 5 <html xmlns="http://www.w3.org/1999/xhtml"><head/><body><namespace:customtag><!-- namespace:customtag--></namespace:customtag></body></html> 6 --------------------------------------------------------^ 7 </sourcetext> 8</parsererror>
you'll receive
1new Error('XML Parsing Error: prefix not bound to a namespace');
$ npm run-script watchify
$ xdg-open test/test.html
or just
$ npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
67 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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