@actualwave/dom-walker

0.0.10 • Public • Published

DOM Walker

Library build on ES6 Proxies using TreeWalker in its core for traversing HTML DOM. Uses BrowserDOM adapter and adds augmentations to work with HTML elements. For more information check TreeWalker documentation.

Usage

From set of TreeWalker API, DOMWalker exports only

  • addAugmentations() -- add more augmentations.
  • resetAugmentations() -- reset augmentations.
  • setNamePrefix() -- add more or change prefixes
  • create() -- accepts two optional arguments for root node of the tree and adapter which is set by default to BrowserDOM adapter.

DEMO

Demo of DOMWalker available here, in comparison you may check demo of DOMWalker built by parts

Package Sidebar

Install

npm i @actualwave/dom-walker

Weekly Downloads

2

Version

0.0.10

License

MIT

Unpacked Size

54.5 kB

Total Files

8

Last publish

Collaborators

  • actualwave