The fast & forgiving HTML and XML parser
MIT License
Bot releases are hidden (Show)
Published by fb55 over 1 year ago
EntityDecoder
from the entities
module https://github.com/fb55/htmlparser2/pull/1480
<a href='&=boo'>
the attribute value won't be modified any more.ontextentity
tokenizer callback now has an endIndex
argument; if you use the tokenizer directly, make sure indices are still the same.createDocumentStream
function, analogous to createDomStream
(which is now deprecated) https://github.com/fb55/htmlparser2/pull/1510
Full Changelog: https://github.com/fb55/htmlparser2/compare/v8.0.2...v9.0.0
Published by fb55 over 1 year ago
eslint-plugin-n
and -unicorn
by @fb55 in https://github.com/fb55/htmlparser2/pull/1352
Full Changelog: https://github.com/fb55/htmlparser2/compare/v8.0.1...v8.0.2
WritableStream
export in the package.json
6923fcaPublished by fb55 over 2 years ago
FeedHandler
class has been removed https://github.com/fb55/htmlparser2/pull/1166
domhandler
and domutils
have changed, the deprecated normalizeWhitespace
option was removed https://github.com/fb55/htmlparser2/pull/1164
htmlparser2
is now a dual CommonJS & ESM module https://github.com/fb55/htmlparser2/pull/1165
entities
' updated decoding tree structure https://github.com/fb55/htmlparser2/pull/1146
parse5
for HTML compliance by @vassudanagunta in https://github.com/fb55/htmlparser2/pull/1147
Full Changelog: https://github.com/fb55/htmlparser2/compare/v7.2.0...v8.0.0
Published by fb55 almost 3 years ago
Fixes:
Docs
parseDocument()
example clearer by @cameronsteele in https://github.com/fb55/htmlparser2/pull/998
Refactors:
The refactors lead to a combined ~5% speed-up.
Full Changelog: https://github.com/fb55/htmlparser2/compare/v7.1.2...v7.2.0
endIndex
of text events being off by 1 (#932) 78ef1b7Features:
isImplied
flag to the onopentag
/onclosetag
events (#930) f917004
Fixes:
[email protected]
changed how indices were computed. Unfortunately, a lot of edge-cases weren't handled correctly. This version fixes this.
.pause
would lead to data being wrongfully discarded (#927) 78af88dforeignObject
will always be lowercased in HTML e852205Refactors:
getFeed
to domutils
(#931) f10dc03stream
tests into WritableStream.spec
(#916) da67eba[email protected]
changes a lot of internals, resulting in an 20% overall performance improvement in AndreasMadsen's htmlparser-benchmark.
Breaking changes:
Features:
isVoidElement
method to the parser (#785) 00ce57aRefactors:
Map
for openImpliesClose
in the parser (#911) 39a8109FeedHandler
to a function (#912) 3a672ffFeatures:
Fixes:
Upgrades:
Breaking:
Features:
parseDocument
method 4653f23
getDOM
method.Minor:
Breaking changes:
decodeEntities
option to true
8ac01e0EVENTS
, WritableStream
and CollectingHandler
exports from module import. The latter two are still part of the module, but now have to be imported explicitly. 6e296d2EventEmitter
f30f13c<title>
tag content is now processed as text (#483 by @billneff79) 0189e56Features:
onattribute
event 3c86256Bug Fixes:
Diverse:
getOneElement
(#543 by @brettz9) 1cf297eThanks to everyone that contributed to this release!
Commit Range:
https://github.com/fb55/htmlparser2/compare/v4.1.0...v5.0.0