HTMLCollection
Overview
HTMLCollection is a class in Aspose.Html FOSS for Python.
A live, ordered collection of Element-type children only.
This class provides 3 methods for working with HTMLCollection objects in Python programs.
Available methods include: __init__, item, named_item.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__(live_list: list[Node]) | Calls init(live_list) on this HTMLCollection instance. |
item(index: int) → Node | None | Return element at index, or None if out of range. |
named_item(name: str) → Node | None | Return the first Element with the given id or name attribute. |