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_stringqualifiedNamestringdoctypeDocumentType
Returns
- XMLDocument
The newly-created XMLDocument.
Remarks
-The DOMImplementation interface it belongs to.
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
Returns
Remarks
-The DOMImplementation interface it belongs to.
CreateHTMLDocument(string)
TheDOMImplementation.createHTMLDocument() method creates a
new HTML Document.
[Value("createHTMLDocument")]
public Document CreateHTMLDocument(string title = null)
Parameters
titlestring
Returns
Remarks
-The DOMImplementation interface it belongs to.
HasFeature()
IMPORTANT
DeprecatedDOMImplementation.hasFeature() method returns aboolean 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 returntrue, where the functionality was accurate and in use.
-The DOMImplementation interface it belongs to.