Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/website/awaited-dom/DOMImplementation.md
1028 views

AwaitedDOM / DOMImplementation

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

Methods

.hasFeature*()*
W3C {#hasFeature}

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: Promise<boolean>

Unimplemented Specs

Methods

createDocument()createDocumentType()
createHTMLDocument()