(self, i: int)
| 269 | self.handle_data(data) |
| 270 | |
| 271 | def parse_pi(self, i: int) -> int: |
| 272 | if self.at_line_start() or self.intail or self.mdstack: |
| 273 | # The same override exists in `HTMLExtractor` without the check |
| 274 | # for `mdstack`. Therefore, use parent of `HTMLExtractor` instead. |
| 275 | return super(HTMLExtractor, self).parse_pi(i) |
| 276 | # This is not the beginning of a raw block so treat as plain data |
| 277 | # and avoid consuming any tags which may follow (see #1066). |
| 278 | self.handle_data('<?') |
| 279 | return i + 2 |
| 280 | |
| 281 | def parse_html_declaration(self, i: int) -> int: |
| 282 | if self.at_line_start() or self.intail or self.mdstack: |
nothing calls this directly
no test coverage detected