parse5
8.1.0 · 1 Nov 2026MIT227.5M / weekRepositoryHomepagenpmAtom feed
2.2.3 is the newest release of 2.x.
In short
1 removed3 new8 changed
- removed
Removed (breaking):
decodeHtmlEntitiesandencodeHtmlEntitiesoptions. (GH #75).
Release note
Added: ParserStream with the scripting support. (GH #26).
Added: SerializerStream. (GH #26).
Added: Line/column location info. (GH #67).
Update (breaking): Location info properties
startandendwere renamed tostartOffsetandendOffsetrespectively.Update (breaking):
SimpleApiParserwas renamed to SAXParser.Update (breaking): SAXParser is the transform stream now. (GH #26).
Update (breaking): SAXParser handler subscription is done via events now.
Added: SAXParser.stop(). (GH #47).
Add (breaking): parse5.parse() and parse5.parseFragment() methods as replacement for the
Parserclass.Add (breaking): parse5.serialize() method as replacement for the
Serializerclass.Updated: Parsing algorithm was updated with the latest HTML spec changes.
- removed
Removed (breaking):
decodeHtmlEntitiesandencodeHtmlEntitiesoptions. (GH #75). Add (breaking): TreeAdapter.setTemplateContent() and TreeAdapter.getTemplateContent() methods. (GH #78).
Update (breaking):
defaulttree adapter now stores<template>content intemplate.contentproperty instead oftemplate.childNodes[0].