| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-03-19 | 1.5 kB | |
| v11.0.0 source code.tar.gz | 2026-03-19 | 85.3 kB | |
| v11.0.0 source code.zip | 2026-03-19 | 98.3 kB | |
| Totals: 3 Items | 185.2 kB | 1 | |
Breaking Changes
- The module is now ESM only https://github.com/fb55/htmlparser2/pull/2381
- CommonJS
require()is no longer supported. Useimportinstead. - The minimum Node.js version is now 20.19.0.
- Dependencies have been bumped to their latest major versions:
domhandlerv6,domutilsv4,domelementtypev3,entitiesv8.
Features
- Added
WebWritableStreamfor the Web Streams API, enabling direct piping fromfetch()response bodies into the parser https://github.com/fb55/htmlparser2/pull/2376
Bug Fixes
- Comments now accept
--!>as a closing sequence per the HTML spec, and<!-->is recognized as an empty comment in HTML mode https://github.com/fb55/htmlparser2/pull/2382 - XML processing instructions (
<?xml ... ?>) now require the full?>closing sequence instead of just>https://github.com/fb55/htmlparser2/pull/2382 - Fixed
reset()not clearingisSpecialandsequenceIndexstate, which could cause incorrect parsing after reuse https://github.com/fb55/htmlparser2/pull/2382 - Fixed XML comment parsing:
<!-->is no longer treated as a complete comment inxmlModehttps://github.com/fb55/htmlparser2/pull/2383
Other Changes
- Expanded README with full API reference, parser options, events, and practical examples https://github.com/fb55/htmlparser2/pull/2384
New Contributors
- @vimzh made their first contribution in https://github.com/fb55/htmlparser2/pull/2376
Full Changelog: https://github.com/fb55/htmlparser2/compare/v10.1.0...v11.0.0