Quote:
Snoddasmannen said:
Yeah that's from firefox right? It's weird. Using the firefox dom inspector, I can clearly see the spell div, spell table and all the spells nicely tucked in there with the images and everything. But visually it still looks like it's just dumped the whole xml document in there without any xslt transformation.
|
I guess that's because you are overwriting the element in
Code:
parent.replaceChild(result.firstChild,spellDiv);
instead of overwriting the innerHTML element or something like that. Usually Mozilla is the closest to implement the specifications, so I guess that you're doing it wrong.
Here's what the element looks like before the replace:

and here's what it looks like afterwards:
