Skip to content

Library build on ES6 Proxies using TreeWalker in its core for traversing HTML DOM.

License

Notifications You must be signed in to change notification settings

burdiuz/js-dom-walker

Repository files navigation

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

About

Library build on ES6 Proxies using TreeWalker in its core for traversing HTML DOM.

Resources

License

Stars

Watchers

Forks

Packages

No packages published