Hi,
I've noticed that NN (7.2 in my case) seems to count *all* nodes anywhere below the node in question as part of the childNodes.length property.
For instance, I have a <table> with <tr> which has, say, 10 <td>'s and in each <td> there is an <input>. IE 6 counts the tr.childNodes.length as 10, but NN counts 20. Obviously this messes up code that tries to use this, which I thought was a DOM standard. I was under the impression that both ie6 and nn7 were compliant with the DOM standards. Is this not the case? And which one is breaking the standard? And is there another syntax I might use that would be at least compatible with ie and nn, specifically for navigating table objects and their nodes.
Thanks for any help on this.
--Jim
I've noticed that NN (7.2 in my case) seems to count *all* nodes anywhere below the node in question as part of the childNodes.length property.
For instance, I have a <table> with <tr> which has, say, 10 <td>'s and in each <td> there is an <input>. IE 6 counts the tr.childNodes.length as 10, but NN counts 20. Obviously this messes up code that tries to use this, which I thought was a DOM standard. I was under the impression that both ie6 and nn7 were compliant with the DOM standards. Is this not the case? And which one is breaking the standard? And is there another syntax I might use that would be at least compatible with ie and nn, specifically for navigating table objects and their nodes.
Thanks for any help on this.
--Jim