Annotation of parser3/tests/144.html, revision 1.3
1.3 ! misha 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: @dump[xdoc]
! 20: ^show_xdoc2[$xdoc]<hr>
! 21: ^show_xnode1[$xdoc]<hr>
! 22: <hr>
! 23:
! 24: @show1[array]
! 25: ^for[i](0;$array-1){
! 26: $x[$array.$i]
! 27: $x.firstChild.nodeValue:
! 28: $pattributes[$x.parentNode.attributes]
! 29: ^if(^pattributes._count[]){
! 30: $pattributes.id.name=$pattributes.id.nodeValue
! 31: }
! 32: <br>
! 33: }
! 34:
! 35: @show_xnodes1[array][i]
! 36: ^for[i](0;^array._count[]-1){
! 37: ^show_xnode1[$array.$i;0;1]
! 38: }
! 39:
! 40: @show_xnode1[x;level;single][l]
! 41: ^if(def $x){
! 42: ^for[l](0;$level-1){ ^; ^; ^; ^;}
! 43: ^if($x.nodeType == $xnode:ELEMENT_NODE){
! 44: <^;$x.nodeName
! 45: $pairs[$x.attributes]
! 46: ^if(def $pairs){
! 47: $names[^pairs._keys[]]
! 48: ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
! 49: }
! 50: >^;
! 51: }{
! 52: [$x.nodeType]
! 53: }
! 54:
! 55: ^if(def $x.nodeValue){$x.nodeValue}<br>
! 56: ^show_xnode1[$x.firstChild]($level+1)
! 57: ^if(!$single){
! 58: ^show_xnode1[$x.nextSibling]($level)
! 59: }
! 60:
! 61: ^if($x.nodeType == $xnode:ELEMENT_NODE){
! 62: ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;<br>
! 63: }
! 64: }
! 65:
! 66: @show_xdoc2[xdoc]
! 67: #$response:body[^xdoc.file[ $.media-type[text/paf] ]]
! 68: <pre>^taint[html][^xdoc.string[
! 69: # $.method[html]
! 70: # $.encoding[utF-8]
! 71: # $.omit-xml-declaration[yes]
! 72: # $.standalone[no]
! 73: # -$.doctype-public[-//W3C//DTD XHTML]
! 74: # -$.doctype-system[/a/b/c/]
! 75: # $.indent[yes]
! 76: # $.media-type[text/paf]
! 77: ]]
! 78: </pre>
E-mail: