What is the unique identifier for a DOM element/node
Is it a good idea to consider xpath for node as the unique identifier. If so how do i get xpath of a element while traversing the DOM.
Thanks in advance for your help
I'm not sure I fully understand what you're looking to do. If you're traversing the DOM array, can you not just do something like this?
i'm not sure what you mean by "and their values." Are you looking for the style, etc info in the tag? Or for innerHTML?
var myArray=new Array();
//for each element in the DOM
Too vague. You must consider the fact that not all the DOM nodes have values (in fact nodeValue). In fact, what do you mean by values?
Originally Posted by asacool
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread