Skip to content

anthonyshort/dom-walk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dom-walk

Walk down a DOM tree

Installation

Install with component(1):

$ 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

About

Walk down a DOM tree and run a callback on each element

Resources

Stars

Watchers

Forks

Packages

No packages published