def __init__(self):
        """Initialize attributes."""
        super().__init__(convert_charrefs=False)
        # root node with no data of itself, only 'children' matters
        self._root = _HtmlHeaderNode(level=0)
        # most recently handled header node
        self._curr_node = self._root
        self._in_header = False
        # record header ids to avoid collisions
        self._header_id_count = {}
        # full HTML string parsed
        self._html = ''
        # temporary HTML start tag of this current header node
        self._temp_start_tag = ''
def __init__ ( self ) : super ( ) . __init__ ( convert_charrefs = False ) self . _root = _HtmlHeaderNode ( level = 0 ) self . _curr_node = self . _root self . _in_header = False self . _header_id_count = { } self . _html = '' self . _temp_start_tag = ''
Initialize attributes.