(self, i: int)
| 279 | self.handle_data(data) |
| 280 | |
| 281 | def parse_pi(self, i: int) -> int: |
| 282 | if self.at_line_start() or self.intail or self.mdstack: |
| 283 | # The same override exists in `HTMLExtractor` without the check |
| 284 | # for `mdstack`. Therefore, use parent of `HTMLExtractor` instead. |
| 285 | return super(HTMLExtractor, self).parse_pi(i) |
| 286 | # This is not the beginning of a raw block so treat as plain data |
| 287 | # and avoid consuming any tags which may follow (see #1066). |
| 288 | self.handle_data('<?') |
| 289 | return i + 2 |
| 290 | |
| 291 | def parse_html_declaration(self, i: int) -> int: |
| 292 | if self.at_line_start() or self.intail or self.mdstack: |
nothing calls this directly
no test coverage detected