NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #321 most downloaded on npm
Utilities for working with htmlparser2's dom
Last release 6 months ago
18 Mar 2026
Release timing varies
gaps range from 2 weeks to 1.7 years
Some releases are documented
notes for 24 of 46 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
46 releases · first in 2012
fix: exclude test fixtures from published files e38a78b
Full Changelog: v4.0.1...v4.0.2
Include source files for source maps.
Include source files for source maps.
One column per quarter.
BREAKING: Make module ESM only by @fb55 in #2272
Full Changelog: v3.2.2...v4.0.0
fix(querying): Fix recursion in findOne ( #1857 ) a09554f
Support root nodes in querying fns ( #1850 ) 90aadcb
Add getElementsByClassName function ( #1551 ) 2804ff3
domutils now features a better querying algorithm that reduces memory allocations and doesn't error any more if a node has too many direct children. #
domutils now features a better querying algorithm that reduces memory allocations and doesn't error any more if a node has too many direct children. #1349ParentNode for appendChild and prependChild #1200removeChildren (by @dertheodor) #1350Full Changelog: v3.0.1...v3.1.0
fix: Set parent in replaceElement #997
parent in replaceElement #997semver-major: Bump domhandler, dom-serializer #995
Full Changelog: v2.8.0...v3.0.0
Marked isType exports as deprecated 2147433
Add textContent and innerText functions 2cf0814
textContent and innerText functions 2cf0814https://github.com/fb55/domutils/compare/v2.6.0...v2.7.0
refactor: Use tagtypes from domhandler (#593) ada2337
domhandler (#593) ada2337https://github.com/fb55/domutils/compare/v2.5.2...v2.6.0
Bump dom-serializer from 1.2.0 to 1.3.1 fb0a2ad ce5fc8e
https://github.com/fb55/domutils/compare/v2.5.1...v2.5.2
This release only includes dependency updates.
This release only includes dependency updates.
https://github.com/fb55/domutils/compare/v2.5.0...v2.5.1
Add prevElementSibling method (#558 by @imharvol) b9793e0
New Features:
prevElementSibling method (#558 by @imharvol) b9793e0Documentation:
Bump dom-serializer from 1.1.0 to 1.2.0 8eb4c56
https://github.com/fb55/domutils/compare/v2.4.3...v2.4.4
Fix nextElementSibling return type (#349 by @demurgos) b2b62c9
nextElementSibling return type (#349 by @demurgos) b2b62c9https://github.com/fb55/domutils/compare/v2.4.2...v2.4.3
Add JSDoc annotations to all remaining methods dd836da
https://github.com/fb55/domutils/compare/v2.4.1...v2.4.2
- Implement prependChild - Update domhandler
prependChilddomhandlerDo not ignore special tags (script and style) in nextElementSibling
script and style) in nextElementSiblinggetSiblings will now collect all siblings using prev and next for root elements.getChildren will now always return an array, even for nodes that are not NodeWithChildren.getParent, to highlight that elements will always have elements as parents.Fix infinite loop in compareDocumentPosition (reported in #109)
fix: children should not be duplicated when called append twice (#283 by @mochiya98)
fix: Call Object.prototype.hasOwnProperty in hasAttrib
Object.prototype.hasOwnProperty in hasAttribAlso added a lot of documentation comments, which should make it easier to get started with this library.
Also added a lot of documentation comments, which should make it easier to get started with this library.
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
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 →