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
| Signature | Description |
|---|---|
__init__() | Calls init on this NamedNodeMap instance. |
get_named_item(name: str) → object | None | Return the Attr with the given name, or None if absent. |
set_named_item(attr: object) → object | None | Set attr, returning the displaced Attr (or None). |
remove_named_item(name: str) → object | Remove and return the Attr with name. |