MCPcopy Index your code
hub / github.com/python/cpython / createAttributeNS

Method createAttributeNS

Lib/xml/dom/minidom.py:1732–1737  ·  view source on GitHub ↗
(self, namespaceURI, qualifiedName)

Source from the content-addressed store, hash-verified

1730 return e
1731
1732 def createAttributeNS(self, namespaceURI, qualifiedName):
1733 prefix, localName = _nssplit(qualifiedName)
1734 a = Attr(qualifiedName, namespaceURI, localName, prefix)
1735 a.ownerDocument = self
1736 a.value = ""
1737 return a
1738
1739 # A couple of implementation-specific helpers to create node types
1740 # not supported by the W3C DOM specs:

Callers 4

testSetIdAttributeNSMethod · 0.80
_clone_nodeFunction · 0.80
startElementNSMethod · 0.80

Calls 2

_nssplitFunction · 0.85
AttrClass · 0.85

Tested by 2

testSetIdAttributeNSMethod · 0.64