Content-Type: text/html Content-Length: 3614 $xdoc:
<?xml version="1.0" encoding="UTF-8"?>
<r xmlns:aa="http://design.ru/uri">
<t a="1" aa:a="2" id="z"/>
<aa:t id="aa:z" a="11" aa:a="22"/>
</r>

^node.getAttribute[]

^firstChild.getAttribute[a]: '1'
^firstChild.getAttribute[aa:a]: ''
^firstChild.getAttribute[*]: exception (type: xml, source: getAttribute, comment: invalid localName '*')
^firstChild.getAttribute[]: exception (type: xml, source: getAttribute, comment: invalid localName '')

^node.getAttributeNS[]

^firstChild.getAttributeNS[http://design.ru/uri;a]: '2'
^firstChild.getAttributeNS[http://design.ru/uri;aa:a]: ''
^firstChild.getAttributeNS[http://design.ru/uri;*]: exception (type: xml, source: getAttributeNS, comment: invalid localName '*')
^firstChild.getAttributeNS[http://design.ru/uri;]: exception (type: xml, source: getAttributeNS, comment: invalid localName '')

^doc.getElementsByTagName[]

^xdoc.getElementsByTagName[t]: 2
^xdoc.getElementsByTagName[a:t]: 0
^xdoc.getElementsByTagName[aa:t]: 0
^xdoc.getElementsByTagName[*]: 3
^xdoc.getElementsByTagName[@]: exception (type: xml, source: getElementsByTagName, comment: invalid localName '@')
^xdoc.getElementsByTagName[]: exception (type: xml, source: getElementsByTagName, comment: invalid localName '')

^doc.getElementsByTagNameNS[]

^xdoc.getElementsByTagNameNS[http://design.ru/uri;t]: 1
^xdoc.getElementsByTagNameNS[http://design.ru/uri;a:t]: 0
^xdoc.getElementsByTagNameNS[http://design.ru/uri;aa:t]: 0
^xdoc.getElementsByTagNameNS[http://design.ru/uri;*]: 1
^xdoc.getElementsByTagNameNS[http://design.ru/uri;@]: exception (type: xml, source: getElementsByTagNameNS, comment: invalid localName '@')
^xdoc.getElementsByTagNameNS[http://design.ru/uri;]: exception (type: xml, source: getElementsByTagNameNS, comment: invalid localName '')
^xdoc.getElementsByTagNameNS[;]: exception (type: xml, source: getElementsByTagNameNS, comment: invalid localName '')
^xdoc.getElementsByTagNameNS[;t]: 0
^xdoc.getElementsByTagNameNS[*;t]: 2
^xdoc.getElementsByTagNameNS[*;*]: 3

^xdoc::create[]

$x[^xdoc::create[doc]]: <?xml version="1.0" encoding="UTF-8"?> <doc/>
$x[^xdoc::create[ns:doc]]: exception (type: xml, source: create, comment: invalid localName 'ns:doc')
$x[^xdoc::create[nu i dela - <"bred"!> ]]: exception (type: xml, source: create, comment: invalid localName 'nu i dela - <"bred"!> ')
$x[^xdoc::create[]]: exception (type: xml, source: create, comment: invalid localName '')

^doc.createElement[]

$n[^x.createElement[doc]]: <?xml version="1.0" encoding="UTF-8"?> <test><doc/></test>
$n[^x.createElement[ns:doc]]: <?xml version="1.0" encoding="UTF-8"?> <test><ns:doc/></test>
$n[^x.createElement[nu i dela - <"bred"!> ]]: exception (type: xml, source: createElement, comment: invalid localName 'nu i dela - <"bred"!> ')
$n[^x.createElement[]]: exception (type: xml, source: createElement, comment: invalid localName '')