Annotation of parser3/tests/109.html, revision 1.3
1.2 paf 1: @main[]
1.3 ! misha 2: ^windows-1251[]
! 3:
1.2 paf 4: ^domdata[]
5:
6: ^show_xnode1[$xdoc.documentElement;0;1]<hr>
7: ^show_xdoc2[$xdoc]<hr>
8:
9:
10: @domdata[]
11: $xdoc[^xdoc::create[doc]]
12: $doc[$xdoc.documentElement]
13: $name[^doc.appendChild[^xdoc.createElement[name]]]
14: $text[^name.appendChild[^xdoc.createTextNode[петросян&coz]]]
15:
16: @show_xnode1[x;level;single][l]
17: ^if(def $x){
18: ^for[l](0;$level-1){ ^; ^; ^; ^;}
19: ^if($x.nodeType == $xnode:ELEMENT_NODE){
20: <^;$x.nodeName
21: $pairs[$x.attributes]
22: ^if(def $pairs){
23: $names[^pairs._keys[]]
24: ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
25: }
26: >^;
27: }{
28: [$x.nodeType]
29: }
30:
31: ^if(def $x.nodeValue){$x.nodeValue}<br>
32: ^show_xnode1[$x.firstChild]($level+1)
33: ^if(!$single){
34: ^show_xnode1[$x.nextSibling]($level)
35: }
36:
37: ^if($x.nodeType == $xnode:ELEMENT_NODE){
38: ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;<br>
39: }
40: }
41:
42: @show_xdoc2[xdoc]
43: <pre>^taint[html][^xdoc.string[
44: $.method[html]
45: ]]
46: </pre>
E-mail: