Annotation of parser3/tests/144.html, revision 1.2

1.1       paf         1: @main[]
                      2: $xdoc[^xdoc::create[doc]]
                      3: 
                      4: $elem[^xdoc.createElementNS[http://parser.ru/first;first:elementWithNamespace1]]
                      5: $dummy[^xdoc.firstChild.appendChild[$elem]]
                      6: 
                      7: #todo:someday render ns decls
                      8: ^dump[$xdoc]
                      9: 
                     10: $elem[^xdoc.createElementNS[http://parser.ru/first;first:elementWithNamespace1]]
                     11: $dummy[^xdoc.firstChild.appendChild[$elem]]
                     12: 
                     13: ^dump[$xdoc]
                     14: 
                     15: $nodeList[^xdoc.getElementsByTagNameNS[http://parser.ru/first;elementWithNamespace1]]
                     16: ^show_xnodes1[$nodeList]
                     17: <hr><hr>
                     18: 
                     19: 
                     20: @dump[xdoc]
                     21: ^show_xdoc2[$xdoc]<hr>
                     22: ^show_xnode1[$xdoc]<hr>
                     23: <hr>
                     24: 
                     25: @show1[array]
                     26: ^for[i](0;$array-1){
                     27:     $x[$array.$i]
                     28:        $x.firstChild.nodeValue: 
                     29:                $pattributes[$x.parentNode.attributes]
                     30:                ^if(^pattributes._count[]){
                     31:                        $pattributes.id.name=$pattributes.id.nodeValue
                     32:                }
                     33:        <br>
                     34: }
                     35:        
                     36: @show_xnodes1[array][i]
                     37: ^for[i](0;^array._count[]-1){
                     38:        ^show_xnode1[$array.$i;0;1]
                     39: }
                     40: 
                     41: @show_xnode1[x;level;single][l]
                     42: ^if(def $x){
                     43:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
                     44:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                     45:        &lt^;$x.nodeName
                     46:            $pairs[$x.attributes]
                     47:            ^if(def $pairs){
                     48:                $names[^pairs._keys[]]
                     49:                ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
                     50:            }
                     51:            &gt^;
                     52:     }{
                     53:        [$x.nodeType]
                     54:     }
                     55:     
                     56:     ^if(def $x.nodeValue){$x.nodeValue}<br>
                     57:     ^show_xnode1[$x.firstChild]($level+1)
                     58:     ^if(!$single){
                     59:            ^show_xnode1[$x.nextSibling]($level)
                     60:     }
                     61: 
                     62:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                     63:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
                     64:     }
                     65: }
                     66: 
                     67: @show_xdoc2[xdoc]
                     68: #$response:body[^xdoc.file[    $.media-type[text/paf]  ]]
                     69: <pre>^taint[html][^xdoc.string[
                     70: #      $.method[html]
                     71: #      $.encoding[utF-8]
                     72: #      $.omit-xml-declaration[yes]
                     73: #      $.standalone[no]
                     74: #      -$.doctype-public[-//W3C//DTD XHTML]
                     75: #      -$.doctype-system[/a/b/c/]
                     76: #      $.indent[yes]
                     77: #      $.media-type[text/paf]
                     78: ]]
                     79: </pre>

E-mail: