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

Method createAttribute

Lib/xml/dom/minidom.py:1720–1724  ·  view source on GitHub ↗
(self, qName)

Source from the content-addressed store, hash-verified

1718 return p
1719
1720 def createAttribute(self, qName):
1721 a = Attr(qName)
1722 a.ownerDocument = self
1723 a.value = ""
1724 return a
1725
1726 def createElementNS(self, namespaceURI, qualifiedName):
1727 prefix, localName = _nssplit(qualifiedName)

Callers 3

testSetIdAttributeMethod · 0.80
startElementNSMethod · 0.80
startElementMethod · 0.80

Calls 1

AttrClass · 0.85

Tested by 1

testSetIdAttributeMethod · 0.64