Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ createElement
Method
createElement
Lib/xml/dom/minidom.py:1689–1692 ·
view source on GitHub ↗
(self, tagName)
Source
from the content-addressed store, hash-verified
1687
return
d
1688
1689
def
createElement(self, tagName):
1690
e = Element(tagName)
1691
e.ownerDocument = self
1692
return
e
1693
1694
def
createTextNode(self, data):
1695
if
not isinstance(data, str):
Callers
15
testLegalChildren
Method · 0.95
testNamedNodeMapSetItem
Method · 0.95
testElement
Method · 0.95
testAddAttr
Method · 0.95
testDeleteAttr
Method · 0.95
testRemoveAttr
Method · 0.95
testRemoveAttributeNode
Method · 0.95
testHasAttribute
Method · 0.95
testGetAttributeNS
Method · 0.95
testElementReprAndStr
Method · 0.95
testElementReprAndStrUnicode
Method · 0.95
testAttributeRepr
Method · 0.95
Calls
1
Element
Class · 0.70
Tested by
15
testLegalChildren
Method · 0.76
testNamedNodeMapSetItem
Method · 0.76
testElement
Method · 0.76
testAddAttr
Method · 0.76
testDeleteAttr
Method · 0.76
testRemoveAttr
Method · 0.76
testRemoveAttributeNode
Method · 0.76
testHasAttribute
Method · 0.76
testGetAttributeNS
Method · 0.76
testElementReprAndStr
Method · 0.76
testElementReprAndStrUnicode
Method · 0.76
testAttributeRepr
Method · 0.76