Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 371 Bytes

Readme.md

File metadata and controls

25 lines (15 loc) · 371 Bytes

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