DOMImplementation
DOMImplementation
Tổng quan
DOMImplementation là một lớp trong Aspose.Html FOSS cho Python.
Giao diện tương thích DOMImplementation kế thừa.
Lớp này cung cấp 6 phương thức để làm việc với các đối tượng DOMImplementation trong các chương trình Python. Các phương thức khả dụng bao gồm: __init__, create_document, create_document_type, create_html_document, get_feature, has_feature. Tất cả các thành viên công khai đều có thể truy cập bởi bất kỳ ứng dụng Python nào sau khi cài đặt gói Aspose.Html FOSS cho Python.
Phương thức
| Chữ ký | Mô tả |
|---|---|
| `init(document: object | None)` |
| `has_feature(feature: str, version: str | None)→bool` |
create_document_type(qualified_name: str, public_id: str, system_id: str) → "DocumentType" | Tạo một nút DocumentType với ngữ nghĩa xác thực cơ bản. |
| `create_document(namespace: str | None, qualified_name: str, doctype: “DocumentType |
| `get_feature(feature: str, version: str | None)→object |
| `create_html_document(title: str | None)→“Document”` |