I just ran into this. It seems that some browsers (most notably Firefox) cuts up the XPath result into a node hierarchy, while some browsers (at least Chrome) doesn't. This means that the firstChild will only have the first child of the hierarchy and so what gets displayed is only the content of the first child.
What I was wondering is, is there a specific reason for just getting the firstChild nodeValue and not the nodeValue complete result node? Are there problems with some browsers if the "this._initialValue = …" bit was changed to just this:
faulty code removed
Edit:
Oops! Make that:
faulty code removed
Edit:
It seems IE doesn't have textContent, so that's out. Also you may have noticed that my solutions weren't at all what the original code is. Finally I went with miklenusa's solution and it seems to work in IE, Firefox and Chrome. Thanks!
p