Content-Type: text/html Content-Length: 3554 $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 ''