Subject: | hasAttributeNS broken |
$doc = $xml->parse_string(q{<x y='z'/>});
print "ok0\n" if defined $doc->documentElement->hasAttribute('y');
print "ok1\n" if $doc->documentElement->hasAttribute('y');
print "ok2\n" if defined $doc->documentElement->hasAttributeNS(undef, 'y');
print "ok3\n" if defined $doc->documentElement->hasAttributeNS('', 'y');
print "ok4\n" if $doc->documentElement->hasAttributeNS(undef, 'y');
print "ok5\n" if $doc->documentElement->hasAttributeNS('', 'y');
prints
ok0
ok1
ok3
it should print
ok0
ok1
ok2
ok3
ok4
ok5