Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
QUERY: childNodes not working in FF :(
I have a table row structured like this (mind the XSL variable):
var tr = document.getElementById(this.Table).rows.item(i + 1);
if(tr.childNodes.childNodes.value == 1 || tr.childNodes.childNodes.value == 2)
This works perfectly fine in Internet Explorer. But in Mozilla Firefox I get:
tr.childNodes.childNodes has no properties
Somehow childNodes, obj.parentElement, etc are not working anymore in Mozilla Firefox. Is
the DOM tree syntax totally different between IE and FF?
Please can someone help.