I have a page where I am trying to put ids on certain elements. I was able to do this with IE, but Firefox is giving me trouble.
Basic layout of where I’m having problems…
Starting with the 2nd row <TR> in a table.
Row has 3 detail <TD> elements.
The 1st td has one entry that is an image <img>.
The 2nd <td> has a ton of content including <div>, <table> and more <img>.
The 3rd (last) has one entry that is an image <img>.
I can get to the 1st and 2nd <td>, but it stops there. No matter what I try I can’t not make my way to the 3rd one.
Trying childNodes returns an array with length of 4, (#text, <td>, #text, <td>). It stops at the 2nd <td> and does not find the last #text or <td>.
Using lastChild points to the 2nd <td>.
The DOM Inspector shows all 3 <td> elements. Why can’t I traverse to the last one?