MCPcopy 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

testLegalChildrenMethod · 0.95
testElementMethod · 0.95
testAddAttrMethod · 0.95
testDeleteAttrMethod · 0.95
testRemoveAttrMethod · 0.95
testHasAttributeMethod · 0.95
testGetAttributeNSMethod · 0.95
testElementReprAndStrMethod · 0.95
testAttributeReprMethod · 0.95

Calls 1

ElementClass · 0.70

Tested by 15

testLegalChildrenMethod · 0.76
testElementMethod · 0.76
testAddAttrMethod · 0.76
testDeleteAttrMethod · 0.76
testRemoveAttrMethod · 0.76
testHasAttributeMethod · 0.76
testGetAttributeNSMethod · 0.76
testElementReprAndStrMethod · 0.76
testAttributeReprMethod · 0.76