--- parser3/tests/142.html 2005/12/16 13:15:18 1.1 +++ parser3/tests/142.html 2010/07/25 06:20:48 1.4 @@ -16,8 +16,8 @@ $insertedComment[^xdoc.firstChild.firstC ^dump[$xdoc] -$elem[^xdoc.createCDATASection[this is CDATA, it replaced comment here!]] -$dummy[^xdoc.firstChild.firstChild.replaceChild[$elem;$insertedComment]] +$cdata[^xdoc.createCDATASection[this is CDATA, it replaced comment here!]] +$dummy[^xdoc.firstChild.firstChild.replaceChild[$cdata;$insertedComment]] ^dump[$xdoc] @@ -27,7 +27,7 @@ $removedNode[^xdoc.firstChild.firstChild ^dump[$xdoc] $elem[^xdoc.createProcessingInstruction[this is target;this is pi]] -$dummy[^xdoc.firstChild.firstChild.replaceChild[$elem;$insertedComment]] +$dummy[^xdoc.firstChild.firstChild.replaceChild[$elem;$cdata]] ^dump[$xdoc] @@ -54,7 +54,6 @@ $NodeList[^xdoc.getElementsByTagName[paf paf count=^NodeList._count[]

- @dump[xdoc] ^show_xdoc2[$xdoc]
^show_xnode1[$xdoc]
@@ -62,7 +61,7 @@ paf count=^NodeList._count[] @show1[array] ^for[i](0;$array-1){ - $x[$array.$i] + $x[$array.$i] $x.firstChild.nodeValue: $pattributes[$x.parentNode.attributes] ^if(^pattributes._count[]){ @@ -78,28 +77,28 @@ paf count=^NodeList._count[] @show_xnode1[x;level;single][l] ^if(def $x){ - ^for[l](0;$level-1){ ^; ^; ^; ^;} - ^if($x.nodeType == $xnode:ELEMENT_NODE){ - <^;$x.nodeName - $pairs[$x.attributes] - ^if(def $pairs){ - $names[^pairs._keys[]] - ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"} - } - >^; - }{ - [$x.nodeType] - } - - ^if(def $x.nodeValue){$x.nodeValue}
- ^show_xnode1[$x.firstChild]($level+1) - ^if(!$single){ - ^show_xnode1[$x.nextSibling]($level) - } - - ^if($x.nodeType == $xnode:ELEMENT_NODE){ - ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;
- } + ^for[l](0;$level-1){ ^; ^; ^; ^;} + ^if($x.nodeType == $xnode:ELEMENT_NODE){ + <^;$x.nodeName + $pairs[$x.attributes] + ^if(def $pairs){ + $names[^pairs._keys[]] + ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"} + } + >^; + }{ + [$x.nodeType] + } + + ^if(def $x.nodeValue){$x.nodeValue}
+ ^show_xnode1[$x.firstChild]($level+1) + ^if(!$single){ + ^show_xnode1[$x.nextSibling]($level) + } + + ^if($x.nodeType == $xnode:ELEMENT_NODE){ + ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;
+ } } @show_xdoc2[xdoc]