DOM Process: Traverse the DOM tree and process elements

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 107 All time: 402 This week: 4Up
Version License JavaScript version Categories
domprocess 1.0.0GNU General Publi...5HTML
Description Author

This object can traverse the DOM tree and process elements.

It takes the DOM node object of a parent element and traverses its nodes recursively.

The object takes a function that determines if each child element should be processed or not.

Another function will be called for nodes that are to be processed.

Innovation Award
JavaScript Programming Innovation award winner
September 2016
Winner


Prize: One downloadable e-book of choice by O'Reilly
Sometimes you need to process a part of a HTML or XML document by traversing all its nodes to perform some useful process.

This object simplifies that task by traversing the child elements of a DOM node and depending on the evaluation of a given callback function, i t will call another callback function to perform the actual processing.

Manuel Lemos
Picture of Everton da Rosa
  Performance   Level  
Name: Everton da Rosa <contact>
Classes: 7 packages by
Country: Brazil Brazil
Age: 41
All time rank: 506 in Brazil Brazil
Week rank: 6 Up1 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

Winner: 3x

  Files folder image Files  
File Role Description
Plain text file domprocess.js Class The script file
Accessible without login Plain text file sample.html Example An example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:107
This week:0
All time:402
This week:4Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:42