Victor Porton added the comment:
My bug report was wrong:
https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html
In the DOM, all namespace declaration attributes are by definition bound to the
namespace URI: "http://www.w3.org/2000/xmlns/";. These are the attributes whose
namespa
New submission from Victor Porton :
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("")
for i in x.documentElement.attributes.values():