DOMStringMap
Overview
DOMStringMap is a class in Aspose.Html FOSS for Python.
A live dict-like view of an element’s data-* custom attributes.
This class provides 5 methods for working with DOMStringMap objects in Python programs.
Available methods include: __init__, get, items, keys, values.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__(owner_element: "Element") | Store the owning element. |
get(key: str, default: str) → str | Return the value for key, or default if absent. |
keys() → Iterator[str] | Return an iterator over all dataset keys in insertion order. |
values() → Iterator[str] | Return an iterator over all dataset values in key insertion order. |
items() → Iterator[tuple[str, str]] | Return an iterator of (key, value) pairs in insertion order. |