Interface IDOMImplementation

Interface IDOMImplementation

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML.dll (25.1.0)

DOMImplementation 接口提供了一些方法,用于执行与文档对象模型的特定实例无关的操作。

[DOMName("DOMImplementation")]
[ComVisible(true)]
[DOMObject]
public interface IDOMImplementation

方法

CreateDocument(string, string, DocumentType)

创建指定类型的 DOM 文档对象及其文档元素。

[DOMName("createDocument")]
Document CreateDocument(string namespaceURI, string qualifiedName, DocumentType doctype)

参数

namespaceURI string

命名空间 URI。

qualifiedName string

合格名称。

doctype DocumentType

文档类型。

返回

Document

返回文档。

CreateDocumentType(string, string, string)

创建一个空的 DocumentType 节点。实体声明和注释不可用。实体引用扩展和默认属性添加不会发生。

[DOMName("createDocumentType")]
DocumentType CreateDocumentType(string qualifiedName, string publicId, string systemId)

参数

qualifiedName string

合格名称。

publicId string

公共 ID。

systemId string

系统 ID。

返回

DocumentType

Aspose.Html.Dom.DocumentType。

CreateHTMLDocument(string)

返回一个文档,基本树已构建,包括标题元素,除非省略标题参数。

[DOMName("createHTMLDocument")]
Document CreateHTMLDocument(string title)

参数

title string

标题。

返回

Document

返回文档。

HasFeature()

测试 DOM 实现是否实现了特定的功能和版本,如 DOM 功能中所述。

[DOMName("hasFeature")]
bool HasFeature()

返回

bool

true 如果指定的功能已实现;否则,false

 中文