(self, i: int)
| 309 | self.handle_empty_tag('<![{}{}'.format(data, end), is_block=True) |
| 310 | |
| 311 | def parse_pi(self, i: int) -> int: |
| 312 | if self.at_line_start() or self.intail: |
| 313 | return super().parse_pi(i) |
| 314 | # This is not the beginning of a raw block so treat as plain data |
| 315 | # and avoid consuming any tags which may follow (see #1066). |
| 316 | self.handle_data('<?') |
| 317 | return i + 2 |
| 318 | |
| 319 | # Internal -- parse comment, return length or -1 if not terminated |
| 320 | # see https://html.spec.whatwg.org/multipage/parsing.html#comment-start-state |
nothing calls this directly
no test coverage detected