docs: def _handle_comment(self, token):
          """Handle a case where an HTML comment is at the head of the tokens."""
          self._push()
          while self._tokens:
              token = self._tokens.pop()
              if isinstance(token, tokens.CommentEnd):
                  contents = self._pop()
                  return Comment(contents)
              else:
                  self._write(self._handle_token(token))
          raise ParserError("_handle_comment() missed a close token")