def _upgrage_to_tag_class(self, elm: Node) -> None: if elm.type_ and 'type' not in elm.attributes: elm.setAttribute('type', elm.type_) if elm.is_ and 'is' not in elm.attributes: elm.setAttribute('is', elm.is_)