Handler for htmlparser2, to get a DOM
BSD-2-CLAUSE License
Document
to be a ChildNode
02387d3ChildNode
as a tagged union d7f9a0fisComment
return type b87ed12Breaking:
normalizeWhitespace
option (#614) 6503e2dFeatures:
Published by fb55 over 2 years ago
Full Changelog: https://github.com/fb55/domhandler/compare/v4.3.0...v4.3.1
Published by fb55 almost 3 years ago
Node
properties from parse5, add docs 3be6f56A breaking change was introduced in 4.2.1
that should have been a major version bump. This reverts this change.
normalizeWhitespace
option (#614)" a841df34.2.2
: Removed the deprecated normalizeWhitespace
option (#614) 018ddf9
4.2.2
adds the option again.Fixes:
isText
return whether the node is a text node c323224Diverse:
New features:
isDocument
, isTag
. Useful for determining if a node matches a particular type.cloneNode
return the passed type
cloneNode
called with a Text
node will now return a Text
node.type: tag
in xmlMode
3977aabFeatures:
cloneNode
bde2dc5Document
class de7c6d0Refactors:
_
from private property names 340fcd8
Fixes:
Misc:
cloneNode
method & function 5babe0dPublished by fb55 about 5 years ago
The withDomLvl1
option was removed. Instead, there are now three different types of nodes, which all have a backing class that adds all of the previously available DOM level 1 properties by default.
Exports were changed slightly.