DOMImplementation
js.html.DOMImplementation (extern class)
The DOMImplementation
interface represent an object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation
property.
Documentation DOMImplementation by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
hasFeature(): Bool
Returns a Boolean
indicating if a given feature is supported or not. This function is unreliable and kept for compatibility purpose alone: except for SVG-related queries, it always returns true
. Old browsers are very inconsistent in their behavior.
Returns |
---|
Bool |
createDocumentType(qualifiedName: String, publicId: String, systemId: String): DocumentType
Creates and returns a DocumentType
.
Name | Type |
---|---|
qualifiedName |
String |
publicId |
String |
systemId |
String |
Returns |
---|
DocumentType |
createDocument(namespace: String, qualifiedName: String, ?doctype: DocumentType): HTMLDocument
Creates and returns an XMLDocument
.
Name | Type | Default |
---|---|---|
namespace |
String | |
qualifiedName |
String | |
doctype |
DocumentType | (optional) |
Returns |
---|
HTMLDocument |
createHTMLDocument(?title: String): HTMLDocument
Creates and returns an HTML Document
.
Name | Type | Default |
---|---|---|
title |
String | (optional) |
Returns |
---|
HTMLDocument |