Table of Contents

Class DOMImplementation

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The DOMImplementation interface represents an object providing methods which are not dependent on any particular document. Such an object is returned by the Implementation property.

[Value("DOMImplementation")]
public class DOMImplementation
Inheritance
DOMImplementation
Inherited Members

Remarks

Constructors

DOMImplementation()

public DOMImplementation()

Methods

CreateDocument(string?, string, DocumentType?)

The DOMImplementation.createDocument() method creates and
returns an XMLDocument.

[Value("createDocument")]
public XMLDocument CreateDocument(string? namespace_, string qualifiedName, DocumentType? doctype = null)

Parameters

namespace_ string
qualifiedName string
doctype DocumentType

Returns

XMLDocument

The newly-created XMLDocument.

Remarks

-The DOMImplementation interface it belongs to.

See also on MDN

CreateDocumentType(string, string, string)

The DOMImplementation.createDocumentType() method returns
a DocumentType object which can either be used with
CreateDocument(string?, string, DocumentType?) upon document creation or can be put
into the document via methods like InsertBefore(Node, Node?) or
ReplaceChild(Node, Node).

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

Parameters

qualifiedName string
publicId string
systemId string

Returns

DocumentType

A DocumentType.

Remarks

-The DOMImplementation interface it belongs to.

See also on MDN

CreateHTMLDocument(string)

The
DOMImplementation.createHTMLDocument() method creates a
new HTML Document.

[Value("createHTMLDocument")]
public Document CreateHTMLDocument(string title = null)

Parameters

title string

Returns

Document

A new HTML Document object.

Remarks

-The DOMImplementation interface it belongs to.

See also on MDN

HasFeature()

IMPORTANT
Deprecated
The
DOMImplementation.hasFeature() method returns a
boolean flag indicating if a given feature is supported. It is
deprecated and modern browsers return true in all cases.
[Value("hasFeature")]
public bool HasFeature()

Returns

bool

A boolean value of true.

Remarks

The different implementations fairly diverged in what kind of features were reported.
The latest version of the spec settled to force this method to always return
true, where the functionality was accurate and in use.

-The DOMImplementation interface it belongs to.

See also on MDN