||View All MessagesBack to WebFX|
Eriks getXML assumes that the content is valid XML, problem is IE doesn't always conatin valid XML in its DOM ie a node with a tag name of '/h1' is possible.
so the html
<h1> FooTitle </h1></h1> <p>test</p>/
Will produce some very wierd results,
Also forms have a bad habbit of not working properly they seem to move around the DOM at will.
You need to add some error checking to the getXML code checking if the node has a valid tag name ie does not start with '/' and also that each node is only processed once.
// Check not empty end tag
if(tagName && tagName.charAt(0) == '/') return ''
To sum it up creating valid XML from the IE DOM can be a nasty job :)
From: Al Val
Sometimes, when I am using getXhtml() it triples my content.