WhakerPy 0.8

https://sourceforge.net/projects/whakerpy/

Module whakerpy.htmlmaker

Class HTMLBr

Description

Represent a new line with <br> tag.

The <br> tag does not support any attribute.

Constructor

Create a node for <br> tag.

Parameters
  • parent
View Source
def __init__(self, parent: str):
    """Create a node for &lt;br&gt; tag.

    """
    super(HTMLBr, self).__init__(parent, None, 'br')

Public functions

check_attribute

Override. Raise an exception because no attribute is supported.

Raises
  • NodeAttributeError: The attribute can't be assigned to this element.
Parameters
  • key
View Source
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)