--- parser3/tests/142.html 2005/12/19 12:24:57 1.2
+++ parser3/tests/142.html 2010/07/25 06:20:48 1.4
@@ -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]