GitHub

API reference for Element.

An element elements collected. Children are elements and strings of character data in document order: adjacent text is one string, and comments and processing instructions are dropped.

Attributes

AttributeTypeDescription
namestr
attributesMapping[str, str] = field(default_factory=(dict[str, str]), hash=False)
childrentuple[Element | str, ...] = ()

Functions

__init__

__init__(name, attributes=dict[str, str](), children=()) -> None
ParameterTypeDescription
namestr
attributesMapping[str, str] = dict[str, str]()
childrentuple[Element | str, ...] = ()