def createElement(self, tag: str) -> Node:
        """Create new element whose tag name is ``tag``."""
        return create_element(tag, base=self._default_class)
Create new element whose tag name is ``tag``.