v5.0.0
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
__location
tosourceCodeLocation
(GH #189). -
Updated (breaking): Location info
line
andcol
properties have been renamed to startLine and
startCol
respectively. -
Updated (breaking):
SAXParser
now passes token objects to event handlers instead of separate arguments. See SAXParser documentation for more info.
(GH #247). -
Added: scriptingEnabled flag to the
ParserOptions
which controls how<noscript>
tags are handled by the parser. (GH #192). -
Added: HTML rewriting stream.
(GH #222). -
Removed (breaking):
parse5
no longer ship TypeScript definitions. Existing TypeScript definitions have been moved to DefinitelyTyped repo. Please, track the PR in the DefinitelyTyped repo for the updates.