Utilities for working with htmlparser2's DOM
BSD-2-CLAUSE License
domutils
now features a better querying algorithm that reduces memory allocations and doesn't error any more if a node has too many direct children. https://github.com/fb55/domutils/pull/1349
ParentNode
for appendChild
and prependChild
https://github.com/fb55/domutils/pull/1200
removeChildren
(by @dertheodor) https://github.com/fb55/domutils/pull/1350
Full Changelog: https://github.com/fb55/domutils/compare/v3.0.1...v3.1.0
parent
in replaceElement
#997Published by fb55 over 2 years ago
Full Changelog: https://github.com/fb55/domutils/compare/v2.8.0...v3.0.0
Features:
getFeed
method (#743) a910757
Fixes:
textContent
e86a8b2Refactors:
Other:
isType
exports as deprecated 2147433textContent
and innerText
functions 2cf0814domhandler
(#593) ada2337This release only includes dependency updates.
nextElementSibling
return type (#349 by @demurgos) b2b62c9script
and style
) in nextElementSibling
getSiblings
will now collect all siblings using prev
and next
for root elements.getChildren
will now always return an array, even for nodes that are not NodeWithChildren
.getParent
, to highlight that elements will always have elements as parents.Published by fb55 about 5 years ago
Also added a lot of documentation comments, which should make it easier to get started with this library.