(self, tag)
| 241 | self.element_positions[element] = self.getpos() |
| 242 | |
| 243 | def handle_endtag(self, tag): |
| 244 | if not self.open_tags: |
| 245 | self.error("Unexpected end tag `%s` (%s)" % (tag, self.format_position())) |
| 246 | element = self.open_tags.pop() |
| 247 | while element.name != tag: |
| 248 | if not self.open_tags: |
| 249 | self.error( |
| 250 | "Unexpected end tag `%s` (%s)" % (tag, self.format_position()) |
| 251 | ) |
| 252 | element = self.open_tags.pop() |
| 253 | |
| 254 | def handle_data(self, data): |
| 255 | self.current.append(data) |
no test coverage detected