Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonyshort/dom-walk
Walk down a DOM tree and run a callback on each element
https://github.com/anthonyshort/dom-walk
Last synced: 24 days ago
JSON representation
Walk down a DOM tree and run a callback on each element
- Host: GitHub
- URL: https://github.com/anthonyshort/dom-walk
- Owner: anthonyshort
- Created: 2013-09-14T07:05:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-16T04:05:07.000Z (over 10 years ago)
- Last Synced: 2024-10-05T21:37:39.139Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 199 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# dom-walk
Walk down a DOM tree
## Installation
Install with [component(1)](http://component.io):
$ component install anthonyshort/dom-walk
## API
var walk = require('walk');
walk(document.body, function(el, attrs, next){
// Process the node
next(); // Next node
}, function(){
// Walked all nodes
});## License
MIT