The value of ns6 is not shown in your code snippet. Typically this is a test for the document.getElementById method, is it? Sometimes it is a test for document.getElementById and not document.all. If that's the case, IE 8 which could use the cur.nextSibling.nextSibling method would be excluded from doing so. A lot of this could have to do with the rest of your code, including the rest of the script and the HTML markup it is being run against. If the markup is invalid, its possible that many browsers might have a problem with either method. However, it hasn't been since IE 4 that IE couldn't use the cur.nextSibling.nextSibling method. So, quite possibly you are just branching your code incorrectly. At the same time, siblings (as far as which exact nodes they are, sometimes empty text nodes are included, sometimes excluded) are not always seen the same in all browsers. In that case the document.getElementsByTagName method is often the best choice. If you want more help:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks