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

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

E-mail: