ActiveFormattingList
Overview
ActiveFormattingList is a class in Aspose.Html FOSS for Python.
The list of active formatting elements as defined in §13.2.4.3.
This class provides 9 methods for working with ActiveFormattingList objects in Python programs.
Available methods include: __init__, clear_to_last_marker, contains, is_marker, push, push_marker, reconstruct, remove, replace.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__() | Calls init on this ActiveFormattingList instance. |
push(element: Element) | Append element to the end. |
push_marker() | Append a marker to the end. |
clear_to_last_marker() | Remove entries back to and including the last marker. |
remove(element: Element) | Remove element if present. |
replace(old: Element, new: Element) | Replace old with new at the same position. |
is_marker(entry: ActiveFormattingEntry) → bool | True if entry is the MARKER sentinel. |
contains(element: Element) → bool | True if element is in the list (not a marker). |
reconstruct(tree_builder: object) | Reconstruct the active formatting elements per §13.2.6.4.1. |