unstale

npm / domhandler

domhandler

What changed in domhandler 3 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

6 breaking3 new APIs and options2 behavior and defaults1 tooling1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.3 on npm

domhandler 62 changes

Breaking changes 1

  • domhandler is now ESM-only, so CommonJS usage is no longer supported.

    6.0.0release notes

Tooling 1

domhandler 53 changes

Breaking changes 2

  • Nodes now use tagged unions for node types, which might break some TypeScript code.

    5.0.0release notes

  • The deprecated normalizeWhitespace option was removed.

    5.0.0release notes

New APIs and options 1

domhandler 45 changes

Breaking changes 2

  • Removes underscores from private property names, which might break code using those properties, such as in a custom handler.

    4.0.0release notes

  • Adds a root element to the tree; some nodes now have a parent node where they did not before.

    4.0.0release notes

New APIs and options 1

Behavior and default changes 1

  • Adds support for parse5 DOM extensions in the types and in cloneNode.

    4.0.0release notes

Fixes and other changes 1

domhandler 33 changes

Breaking changes 1

  • The withDomLvl1 option was removed; DOM level 1 properties are now added by default through backing classes for the node types.

    3.0.0release notes

New APIs and options 1

  • Three different types of nodes now have backing classes that add all previously available DOM level 1 properties by default.

    3.0.0release notes

Behavior and default changes 1