8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed014f6 commit b61170eCopy full SHA for b61170e
html5lib/treewalkers/dom.py
@@ -18,7 +18,10 @@ def getNodeDetails(self, node):
18
attrs = {}
19
for attr in node.attributes.keys():
20
attr = node.getAttributeNode(attr)
21
- attrs[(attr.namespaceURI,attr.localName)] = attr.value
+ if attr.namespaceURI:
22
+ attrs[(attr.namespaceURI,attr.localName)] = attr.value
23
+ else:
24
+ attrs[(None,attr.name)] = attr.value
25
return (_base.ELEMENT, node.namespaceURI, node.nodeName,
26
attrs, node.hasChildNodes())
27
0 commit comments