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

Method fragmentClass

code3/bs4/builder/_html5lib.py:95–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 return TextNode(Comment(data), self.soup)
94
95 def fragmentClass(self):
96 self.soup = BeautifulSoup("")
97 self.soup.name = "[document_fragment]"
98 return Element(self.soup, self.soup, None)
99
100 def appendChild(self, node):
101 # XXX This code is not covered by the BS4 tests.

Callers

nothing calls this directly

Calls 2

ElementClass · 0.70
BeautifulSoupClass · 0.50

Tested by

no test coverage detected