blob: f8291efab6556b470936656bdd27294f274edadb [file] [log] [blame]
Test of normalize on an XML document with CDATA.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Before normalize
PASS serializer.serializeToString(xmlChunk) is "<foo>This is some text before the CDATA<![CDATA[This is some <bold>markup</bold> inside of a CDATA]]>This is some text after the CDATA</foo>"
PASS xmlChunk.documentElement.childNodes.length is 3
After normalize
PASS serializer.serializeToString(xmlChunk) is "<foo>This is some text before the CDATA<![CDATA[This is some <bold>markup</bold> inside of a CDATA]]>This is some text after the CDATA</foo>"
PASS xmlChunk.documentElement.childNodes.length is 3
PASS successfullyParsed is true
TEST COMPLETE