domutils

Utilities for working with htmlparser2's DOM

BSD-2-CLAUSE License

Downloads
174.2M
Stars
189
Committers
20
domutils - v3.1.0 Latest Release

Published by fb55 over 1 year ago

Features

Fixes

Other changes

Full Changelog: https://github.com/fb55/domutils/compare/v3.0.1...v3.1.0

domutils -

Published by fb55 over 2 years ago

  • fix: Set parent in replaceElement #997

https://github.com/fb55/domutils/compare/v3.0.0...v3.0.1

domutils - v3.0.0

Published by fb55 over 2 years ago

What's Changed

Full Changelog: https://github.com/fb55/domutils/compare/v2.8.0...v3.0.0

domutils -

Published by fb55 about 3 years ago

Features:

  • Added a getFeed method (#743) a910757
    • Extracted from htmlparser2. The FeedHandler class was equivalent to what this is doing.

Fixes:

  • Ignore comments in textContent e86a8b2

Refactors:

  • Simplified the text stringify methods e0915f3
  • Improved the types of the legacy methods 527bcc4

Other:

  • Marked isType exports as deprecated 2147433
domutils -

Published by fb55 over 3 years ago

  • Add textContent and innerText functions 2cf0814

https://github.com/fb55/domutils/compare/v2.6.0...v2.7.0

domutils -

Published by fb55 over 3 years ago

  • refactor: Use tagtypes from domhandler (#593) ada2337
  • feat(uniqueSort): Return type of passed array 7587734

https://github.com/fb55/domutils/compare/v2.5.2...v2.6.0

domutils -

Published by fb55 over 3 years ago

  • Bump dom-serializer from 1.2.0 to 1.3.1 fb0a2ad ce5fc8e

https://github.com/fb55/domutils/compare/v2.5.1...v2.5.2

domutils -

Published by fb55 over 3 years ago

This release only includes dependency updates.

https://github.com/fb55/domutils/compare/v2.5.0...v2.5.1

domutils -

Published by fb55 over 3 years ago

New Features:

  • Add prevElementSibling method (#558 by @imharvol) b9793e0

Documentation:

  • Deploy docs to GitHub pages (#445) 6c6c06b 8fff322 34ce783
  • Fix return type descriptions adef5b4
domutils -

Published by fb55 almost 4 years ago

  • Bump dom-serializer from 1.1.0 to 1.2.0 8eb4c56

https://github.com/fb55/domutils/compare/v2.4.3...v2.4.4

domutils -

Published by fb55 almost 4 years ago

  • Fix nextElementSibling return type (#349 by @demurgos) b2b62c9
  • Run test on ppc64le as well (#403 by @nageshlop) 6c8345a
  • Bump dependencies

https://github.com/fb55/domutils/compare/v2.4.2...v2.4.3

domutils -

Published by fb55 about 4 years ago

  • Add JSDoc annotations to all remaining methods dd836da

https://github.com/fb55/domutils/compare/v2.4.1...v2.4.2

domutils -

Published by fb55 about 4 years ago

  • Implement prependChild
  • Update domhandler
domutils -

Published by fb55 about 4 years ago

  • Traversals:
    • Do not ignore special tags (script 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.
    • Updated the type for getParent, to highlight that elements will always have elements as parents.
    • Improve handling of nullish values, docs
  • Update funding information
domutils -

Published by fb55 about 4 years ago

  • Fix infinite loop in compareDocumentPosition (reported in #109)
  • Improve test coverage, streamline code
domutils -

Published by fb55 about 4 years ago

  • fix: children should not be duplicated when called append twice (#283 by @mochiya98)
  • Add nextElementSibling function (#284 by @mochiya98)
domutils -

Published by fb55 over 4 years ago

  • fix: Call Object.prototype.hasOwnProperty in hasAttrib
  • Simplify querying
  • Improve documentation
domutils - Port to TypeScript, Jest

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.