Internet Explorer (since 5.0) supports nodeValue() method to fetch the value of a node like Firefox or Opera, albeit with an exception. IE will provide the nodeValue only if the node is of type TextNode. So, for example, it will not give the nodeValue of a div. However Firefox and Opera works fine and provides the content. The solution is rather simple.

You can use innerHTML instead of nodeValue. It works on all the modern browsers.
Do you know of any caveats?