DOMImplementation

DOMImplementation

Overview

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

Legacy DOMImplementation compatibility surface.

This class provides 6 methods for working with DOMImplementation objects in Python programs. Available methods include: __init__, create_document, create_document_type, create_html_document, get_feature, has_feature. All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.

Methods

SignatureDescription
__init__(document: object | None)Calls init(document) on this DOMImplementation instance.
has_feature(feature: str, version: str | None)boolReturn legacy feature-probe compatibility status.
create_document_type(qualified_name: str, public_id: str, system_id: str)"DocumentType"Create a DocumentType node with baseline validation semantics.
create_document(namespace: str | None, qualified_name: str, doctype: "DocumentType | None")"Document"Create a Document with optional doctype and root baseline wiring.
get_feature(feature: str, version: str | None)object | NoneReturn this implementation for supported probes, else None.
create_html_document(title: str | None)"Document"Create a detached HTML Document with html/head/body structure.

See Also