code: def _handle_single_tag_end(self):
          
          stack = self._stack
          # We need to find the index of the TagCloseOpen token corresponding to
          # the TagOpenOpen token located at index 0:
          depth = 1
          for index, token in enumerate(stack[2:], 2):
              if isinstance(token, tokens.TagOpenOpen):
                  depth += 1
              elif isinstance(token, tokens.TagCloseOpen):
                  depth -= 1
                  if depth == 0:
                      break
              elif isinstance(token, tokens.TagCloseSelfclose):
                  depth -= 1
                  if depth == 0:  # pragma: no cover (untestable/exceptional)
                      raise ParserError(
                          "_handle_single_tag_end() got an unexpected "
                          "TagCloseSelfclose")
          else:  # pragma: no cover (untestable/exceptional case)
              raise ParserError("_handle_single_tag_end() missed a TagCloseOpen")
          padding = stack[index].padding
          stack[index] = tokens.TagCloseSelfclose(padding=padding, implicit=True)
          return self._pop()
docs: Handle the stream end when inside a single-supporting HTML tag.