NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #355 most downloaded on npm
Handler for htmlparser2 that turns pages into a dom
Last release 6 months ago
17 Mar 2026
Ships unpredictably
gaps range from 1 weeks to 3.9 years
Some releases are documented
notes for 17 of 35 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
35 releases · first in 2012
add JSR import map for domelementtype
BREAKING: domhandler is now ESM-only #1867
One column per quarter.
fix: Allow Document to be a ChildNode 02387d3
Document to be a ChildNode 02387d3Fixed ChildNode as a tagged union d7f9a0f
ChildNode as a tagged union d7f9a0fFixed isComment return type b87ed12
isComment return type b87ed12Removed the deprecated normalizeWhitespace option ( #614 ) 6503e2d
fix(node): Correct parse5 location types
Add missing Node properties from parse5, add docs 3be6f56
Node properties from parse5, add docs 3be6f56A breaking change was introduced in 4.2.1 that should have been a major version bump. This reverts this change.
A breaking change was introduced in 4.2.1 that should have been a major version bump. This reverts this change.
BREAKING, REVERTED IN 4.2.2 : Removed the deprecated normalizeWhitespace option ( #614 ) 018ddf9
4.2.2: Removed the deprecated normalizeWhitespace option (#614) 018ddf9
4.2.2 adds the option again.Fixes:
isText return whether the node is a text node c323224Diverse:
feat(node): Add type check functions
New features:
isDocument, isTag. Useful for determining if a node matches a particular type.cloneNode return the passed type
cloneNode called with a Text node will now return a Text node.https://github.com/fb55/domhandler/compare/v4.1.0...v4.2.0
fix: All elements should have type: tag in xmlMode 3977aab
type: tag in xmlMode 3977aabhttps://github.com/fb55/domhandler/compare/v4.0.0...v4.1.0
Add parse5 DOM extensions to types and add support in cloneNode bde2dc5
Features:
cloneNode bde2dc5Document class de7c6d0Refactors:
_ from private property names 340fcd8
Fixes:
Misc:
https://github.com/fb55/domhandler/compare/v3.3.0...v4.0.0
Add cloneNode method & function 5babe0d
cloneNode method & function 5babe0dhttps://github.com/fb55/domhandler/compare/v3.2.0...v3.3.0
Jest now properly renders the produced DOM in snapshots.
Publish only lib folder (#263 by @TrySound)
package.json improvements:
types entry (fixes #132)sideEffects: false (#232 by @ericjeney)The withDomLvl1 option was removed. Instead, there are now three different types of nodes, which all have a backing class that adds all of the previou
The withDomLvl1 option was removed. Instead, there are now three different types of nodes, which all have a backing class that adds all of the previously available DOM level 1 properties by default.
Exports were changed slightly.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →