Annotation of parser3/tests/109.html, revision 1.1.2.1

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

E-mail: