(self, position=None, element=None)
| 212 | raise HTMLParseError(msg, self.getpos()) |
| 213 | |
| 214 | def format_position(self, position=None, element=None): |
| 215 | if not position and element: |
| 216 | position = self.element_positions[element] |
| 217 | if position is None: |
| 218 | position = self.getpos() |
| 219 | if hasattr(position, "lineno"): |
| 220 | position = position.lineno, position.offset |
| 221 | return "Line %d, Column %d" % position |
| 222 | |
| 223 | @property |
| 224 | def current(self): |