def position(self):
        """Returns (line, col) of the current position in the stream."""
        line, col = self._position(self.chunkOffset)
        return (line+1, col)
Returns (line, col) of the current position in the stream.
html5lib/inputstream.py