HTML DOM Document implementation attribute
- Previous page images
- Next page importNode()
- Go up one level HTML DOM Documents
definition and usage
implementation
The property returns the DOMimplementation object that handles the document.
Warning!
DOM 1 Recommendation (1998) specifies only one method for this object: hasFeature().
The hasFeature() method is used to check if the browser supports the DOM module:
let answer = document.implementation.hasFeature("DOM", "1.0");
The problem is: all modern browsers always return true
.
instance
Example 1
Does this document have the DOM 1.0 feature?
document.implementation.hasFeature("DOM", "1.0");
Example 2
Does this document have the TESLA X feature?
document.implementation.hasFeature("TESLA", "X");
syntax
document.implementation
return value
type | description |
---|---|
object |
DocumentImplementation object, the implementation object of the document. |
browser support
document.implementation
Is DOM Level 1 (1998) feature.
All browsers support it:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Support | 9-11 | Support | Support | Support | Support |
- Previous page images
- Next page importNode()
- Go up one level HTML DOM Documents