NamedNodeMap

Overview

NamedNodeMap is a class in Aspose.Html FOSS for Python.

An ordered map of Attr objects keyed by attribute name.

This class provides 4 methods for working with NamedNodeMap objects in Python programs. Available methods include: __init__, get_named_item, remove_named_item, set_named_item. All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.

Methods

SignatureDescription
__init__()Calls init on this NamedNodeMap instance.
get_named_item(name: str)object | NoneReturn the Attr with the given name, or None if absent.
set_named_item(attr: object)object | NoneSet attr, returning the displaced Attr (or None).
remove_named_item(name: str)objectRemove and return the Attr with name.

See Also