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

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: $attr[^xdoc.createAttributeNS[http://parser.ru/second;second:element2WithNamespace2]]
        !            16: $dummy[^xdoc.firstChild.firstChild.appendChild[$attr]]
        !            17: 
        !            18: ^dump[$xdoc]
        !            19: 
        !            20: $attr[^xdoc.createAttributeNS[http://parser.ru/second;second:element3WithNamespace2]]
        !            21: $dummy[^xdoc.firstChild.firstChild.appendChild[$attr]]
        !            22: 
        !            23: ^dump[$xdoc]
        !            24: 
        !            25: $nodeList[^xdoc.getElementsByTagNameNS[http://parser.ru/first;elementWithNamespace1]]
        !            26: ^show_xnodes1[$nodeList]
        !            27: <hr><hr>
        !            28: 
        !            29: 
        !            30: @dump[xdoc]
        !            31: ^show_xdoc2[$xdoc]<hr>
        !            32: ^show_xnode1[$xdoc]<hr>
        !            33: <hr>
        !            34: 
        !            35: @show1[array]
        !            36: ^for[i](0;$array-1){
        !            37:     $x[$array.$i]
        !            38:        $x.firstChild.nodeValue: 
        !            39:                $pattributes[$x.parentNode.attributes]
        !            40:                ^if(^pattributes._count[]){
        !            41:                        $pattributes.id.name=$pattributes.id.nodeValue
        !            42:                }
        !            43:        <br>
        !            44: }
        !            45:        
        !            46: @show_xnodes1[array][i]
        !            47: ^for[i](0;^array._count[]-1){
        !            48:        ^show_xnode1[$array.$i;0;1]
        !            49: }
        !            50: 
        !            51: @show_xnode1[x;level;single][l]
        !            52: ^if(def $x){
        !            53:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
        !            54:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
        !            55:        &lt^;$x.nodeName
        !            56:            $pairs[$x.attributes]
        !            57:            ^if(def $pairs){
        !            58:                $names[^pairs._keys[]]
        !            59:                ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
        !            60:            }
        !            61:            &gt^;
        !            62:     }{
        !            63:        [$x.nodeType]
        !            64:     }
        !            65:     
        !            66:     ^if(def $x.nodeValue){$x.nodeValue}<br>
        !            67:     ^show_xnode1[$x.firstChild]($level+1)
        !            68:     ^if(!$single){
        !            69:            ^show_xnode1[$x.nextSibling]($level)
        !            70:     }
        !            71: 
        !            72:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
        !            73:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
        !            74:     }
        !            75: }
        !            76: 
        !            77: @show_xdoc2[xdoc]
        !            78: #$response:body[^xdoc.file[    $.media-type[text/paf]  ]]
        !            79: <pre>^taint[html][^xdoc.string[
        !            80: #      $.method[html]
        !            81: #      $.encoding[utF-8]
        !            82: #      $.omit-xml-declaration[yes]
        !            83: #      $.standalone[no]
        !            84: #      -$.doctype-public[-//W3C//DTD XHTML]
        !            85: #      -$.doctype-system[/a/b/c/]
        !            86: #      $.indent[yes]
        !            87: #      $.media-type[text/paf]
        !            88: ]]
        !            89: </pre>

E-mail: