Represent a new line with <br> tag.
The <br> tag does not support any attribute.
Represent a new line with <br> tag.
The <br> tag does not support any attribute.
Create a node for <br> tag.
def __init__(self, parent: str):
"""Create a node for <br> tag.
"""
super(HTMLBr, self).__init__(parent, None, 'br')
Override. Raise an exception because no attribute is supported.
def check_attribute(self, key: str) -> str:
"""Override. Raise an exception because no attribute is supported.
:raises: NodeAttributeError: The attribute can't be assigned to this element.
"""
raise NodeAttributeError(key)