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

1.1     ! misha       1: @main[]
        !             2: $uri[http://design.ru/uri]
        !             3: 
        !             4: $xdoc[^xdoc::create{<?xml version="1.0"?><r xmlns:aa="$uri"><t a="1" aa:a="2" id="z"/><aa:t id="aa:z" a="11" aa:a="22"/></r>}]
        !             5: 
        !             6: $firstChild[$xdoc.documentElement.firstChild]
        !             7: 
        !             8: ^$xdoc:
        !             9: <pre>^taint[^xdoc.string[$.indent[yes]]]</pre>
        !            10: 
        !            11: 
        !            12: 
        !            13: $tAttr[^table::create{sName
        !            14: a
        !            15: aa:a
        !            16: *
        !            17:        empty
        !            18: }]
        !            19: 
        !            20: <h2>^^node.getAttribute[]</h2>
        !            21: ^tAttr.menu{
        !            22:        ^do[^^firstChild.getAttribute[$tAttr.sName]]{
        !            23:                '^firstChild.getAttribute[$tAttr.sName]'
        !            24:        }
        !            25: }[<hr />]
        !            26: 
        !            27: 
        !            28: <h2>^^node.getAttributeNS[]</h2>
        !            29: ^tAttr.menu{
        !            30:        ^do[^^firstChild.getAttributeNS[$uri^;$tAttr.sName]]{
        !            31:                '^firstChild.getAttributeNS[$uri;$tAttr.sName]'
        !            32:        }
        !            33: }[<hr />]
        !            34: 
        !            35: 
        !            36: 
        !            37: $tEl[^table::create{sName
        !            38: t
        !            39: a:t
        !            40: aa:t
        !            41: *
        !            42: ^@
        !            43:        empty
        !            44: }]
        !            45: 
        !            46: <h2>^^doc.getElementsByTagName[]</h2>
        !            47: ^tEl.menu{
        !            48:        ^do[^^xdoc.getElementsByTagName[$tEl.sName]]{
        !            49:                ^eval(^xdoc.getElementsByTagName[$tEl.sName])
        !            50:        }
        !            51: }[<hr />]
        !            52: 
        !            53: 
        !            54: 
        !            55: $tElNS[^table::create{sName    sURI
        !            56: t      $uri
        !            57: a:t    $uri
        !            58: aa:t   $uri
        !            59: *      $uri
        !            60: ^@     $uri
        !            61:        $uri    empty tag
        !            62:                empty
        !            63: t              empty uri
        !            64: t      *
        !            65: *      *
        !            66: }]
        !            67: <h2>^^doc.getElementsByTagNameNS[]</h2>
        !            68: ^tElNS.menu{
        !            69:        ^do[^^xdoc.getElementsByTagNameNS[$tElNS.sURI^;$tElNS.sName]]{
        !            70:                ^eval(^xdoc.getElementsByTagNameNS[$tElNS.sURI;$tElNS.sName])
        !            71:        }
        !            72: }[<hr />]
        !            73: 
        !            74: 
        !            75: 
        !            76: 
        !            77: $tTag[^table::create{sName
        !            78: doc
        !            79: ns:doc
        !            80: nu i dela - <"bred"!> 
        !            81:        empty
        !            82: }]
        !            83: 
        !            84: 
        !            85: <h2>^^xdoc::create[]</h2>
        !            86: ^tTag.menu{
        !            87:        ^do[^$x[^^xdoc::create[$tTag.sName]]]{
        !            88:                $x[^xdoc::create[$tTag.sName]]
        !            89:                ^taint[^x.string[]]
        !            90:        }
        !            91: }[<hr />]
        !            92: 
        !            93: 
        !            94: <h2>^^doc.createElement[]</h2>
        !            95: ^tTag.menu{
        !            96:        $x[^xdoc::create[test]]
        !            97:        ^do[^taint[^$n[^^x.createElement[$tTag.sName]]]]{
        !            98:                $n[^x.createElement[$tTag.sName]]
        !            99:                $tmp[^x.documentElement.appendChild[$n]]
        !           100:                ^taint[^x.string[]]
        !           101:        }
        !           102: }[<hr />]
        !           103: 
        !           104: 
        !           105: 
        !           106: @do[sTitle;jCode]
        !           107: ^if(def $sTitle){
        !           108:        <b>${sTitle}</b>:
        !           109: }
        !           110: ^try{$jCode}{
        !           111:        $exception.handled(true)
        !           112:        exception (type: $exception.type,
        !           113:        source: $exception.source,
        !           114:        comment: $exception.comment)
        !           115: }

E-mail: