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

Method unknown_decl

code3/bs4/builder/_htmlparser.py:111–119  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

109 self.soup.endData(Doctype)
110
111 def unknown_decl(self, data):
112 if data.upper().startswith('CDATA['):
113 cls = CData
114 data = data[len('CDATA['):]
115 else:
116 cls = Declaration
117 self.soup.endData()
118 self.soup.handle_data(data)
119 self.soup.endData(cls)
120
121 def handle_pi(self, data):
122 self.soup.endData()

Callers

nothing calls this directly

Calls 2

endDataMethod · 0.45
handle_dataMethod · 0.45

Tested by

no test coverage detected