Annotation of parser3/tests/146.html, revision 1.1
1.1 ! paf 1: @main[]
! 2: $xdoc[^xdoc::create{<?xml version="1.0" encoding="$request:charset"?>
! 3: <!--some comment-->
! 4: <people>
! 5: <man>
! 6: <name>ПИФ^taint[&]</name>
! 7: </man>
! 8: <man id="1" имя="word слово">
! 9: <name>P«^;AF B</name>
! 10: </man>
! 11: </people>
! 12: }]
! 13:
! 14: ^dump[$xdoc]
! 15:
! 16: #$cloned[^xdoc.firstChild.cloneNode(false)]
! 17: #$dummy[^xdoc.firstChild.nextSibling.appendChild[$cloned]]
! 18: #
! 19: #^dump[$xdoc]
! 20:
! 21: #second man
! 22: $cloned[^xdoc.firstChild.nextSibling.lastChild.previousSibling.cloneNode(true)]
! 23: $dummy[^xdoc.firstChild.nextSibling.appendChild[$cloned]]
! 24:
! 25: ^dump[$xdoc]
! 26:
! 27: @dump[xdoc]
! 28: ^show_xdoc2[$xdoc]<hr>
! 29: ^show_xnode1[$xdoc]<hr>
! 30: <hr>
! 31:
! 32: @show1[array]
! 33: ^for[i](0;$array-1){
! 34: $x[$array.$i]
! 35: $x.firstChild.nodeValue:
! 36: $pattributes[$x.parentNode.attributes]
! 37: ^if(^pattributes._count[]){
! 38: $pattributes.id.name=$pattributes.id.nodeValue
! 39: }
! 40: <br>
! 41: }
! 42:
! 43: @show_xnodes1[array][i]
! 44: ^for[i](0;^array._count[]-1){
! 45: ^show_xnode1[$array.$i;0;1]
! 46: }
! 47:
! 48: @show_xnode1[x;level;single][l]
! 49: ^if(def $x){
! 50: ^for[l](0;$level-1){ ^; ^; ^; ^;}
! 51: ^if($x.nodeType == $xnode:ELEMENT_NODE){
! 52: <^;$x.nodeName
! 53: $pairs[$x.attributes]
! 54: ^if(def $pairs){
! 55: $names[^pairs._keys[]]
! 56: ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
! 57: }
! 58: >^;
! 59: }{
! 60: [$x.nodeType]
! 61: }
! 62:
! 63: ^if(def $x.nodeValue){$x.nodeValue}<br>
! 64: ^show_xnode1[$x.firstChild]($level+1)
! 65: ^if(!$single){
! 66: ^show_xnode1[$x.nextSibling]($level)
! 67: }
! 68:
! 69: ^if($x.nodeType == $xnode:ELEMENT_NODE){
! 70: ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;<br>
! 71: }
! 72: }
! 73:
! 74: @show_xdoc2[xdoc]
! 75: #$response:body[^xdoc.file[ $.media-type[text/paf] ]]
! 76: <pre>^taint[html][^xdoc.string[
! 77: # $.method[html]
! 78: # $.encoding[utF-8]
! 79: # $.omit-xml-declaration[yes]
! 80: # $.standalone[no]
! 81: # -$.doctype-public[-//W3C//DTD XHTML]
! 82: # -$.doctype-system[/a/b/c/]
! 83: # $.indent[yes]
! 84: # $.media-type[text/paf]
! 85: ]]
! 86: </pre>
E-mail: