This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author porton
Recipients porton
Date 2018-08-01.13:32:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533130349.62.0.56676864532.issue34306@psf.upfronthosting.co.za>
In-reply-to
Content
The below script prints

http://www.w3.org/2000/xmlns/
aa:aa

It should print

None
aa:aa

because xmlns:z is NOT an attribute of xmlns namespace.

~~~
import xml.dom.minidom

x = xml.dom.minidom.parseString("<x xmlns:z='aa:aa' z:q='1'/>")

for i in x.documentElement.attributes.values():
    print(i.namespaceURI)
~~~
History
Date User Action Args
2018-08-01 13:32:29portonsetrecipients: + porton
2018-08-01 13:32:29portonsetmessageid: <1533130349.62.0.56676864532.issue34306@psf.upfronthosting.co.za>
2018-08-01 13:32:29portonlinkissue34306 messages
2018-08-01 13:32:29portoncreate