MCPcopy Index your code
hub / github.com/csev/py4e / elementClass

Method elementClass

code3/bs4/builder/_html5lib.py:88–90  ·  view source on GitHub ↗
(self, name, namespace)

Source from the content-addressed store, hash-verified

86 self.soup.object_was_parsed(doctype)
87
88 def elementClass(self, name, namespace):
89 tag = self.soup.new_tag(name, namespace)
90 return Element(tag, self.soup, namespace)
91
92 def commentClass(self, data):
93 return TextNode(Comment(data), self.soup)

Callers

nothing calls this directly

Calls 2

ElementClass · 0.70
new_tagMethod · 0.45

Tested by

no test coverage detected