parse5
8.1.0 · 1 Nov 2026MIT227.5M / weekRepositoryHomepagenpmAtom feed
5.1.1 is the newest release of 5.x.
In short
7 changed
Release note
Starting from this release parse5 functionality will be shipped in separate packages. With parse5 package contatining only basic functionality. Please, refer to the list of packages for more info.
Updated (breaking): source code location now inserted by tree adapter, so tree adapter developers have control over location info property name. Tree adapters should implement setNodeSourceCodeLocation and getNodeSourceCodeLocation methods. Location info property name added by currently implemented tree adapters has been renamed from
__locationtosourceCodeLocation(GH #189).Updated (breaking): Location info
lineandcolproperties have been renamed to startLine and
startCol
respectively.Updated (breaking):
SAXParsernow passes token objects to event handlers instead of separate arguments. See SAXParser documentation for more info.
(GH #247).Added: scriptingEnabled flag to the
ParserOptionswhich controls how<noscript>tags are handled by the parser. (GH #192).Added: HTML rewriting stream.
(GH #222).Removed (breaking):
parse5no longer ship TypeScript definitions. Existing TypeScript definitions have been moved to DefinitelyTyped repo. Please, track the PR in the DefinitelyTyped repo for the updates.