Html
HTMLElement
Bases: ABC
Abstract base class representing an HTML element.
This class defines the common interface for all HTML elements, providing methods for manipulating child elements.
Methods:
Name | Description |
---|---|
appendChild |
HTMLElement) -> None: Appends a child element to the current element. |
removeChild |
HTMLElement) -> None: Removes a child element from the current element. |
Source code in zenaura/client/tags/html.py
appendChild(child)
abstractmethod
Appends a child element to the current element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
child |
HTMLElement
|
The child element to be appended. |
required |
Raises:
Type | Description |
---|---|
TypeError
|
If the provided child is not an instance of |
Source code in zenaura/client/tags/html.py
removeChild(child)
abstractmethod
Removes a child element from the current element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
child |
HTMLElement
|
The child element to be removed. |
required |
Raises:
Type | Description |
---|---|
TypeError
|
If the provided child is not an instance of |
ValueError
|
If the provided child is not a child of the current element. |