Quote:
lch said:
The second problem is that you're replacing a DOM node by something of a different type. If I am reading the last paragraph in that article right then you can probably use transformToFragment() to have it working correctly. You are trying to put a DOM document into another one, not good.
|
Actually I'm putting the firstChild of a dom document, ie the spelldiv, into another document. The resulting dom tree is obviously correct, but Mozilla isn't updating it correctly for some reason.
Doesn't make any sense to me why I would need to specify the destination document of a node at the time of creation, but on the other hand XSLTProcessor is a mozilla invention so they can do whatever they want with it.
But enough whining, I switched to transformToFragment() and yay it seems to work even without the ugly workaround!

Thanks lhc!
jimkehn, which browser are you using?