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

SignatureDescription
__init__(live_list: list[Node])Calls init(live_list) on this HTMLCollection instance.
item(index: int)Node | NoneReturn element at index, or None if out of range.
named_item(name: str)Node | NoneReturn the first Element with the given id or name attribute.

See Also