HTML DOM Document implementation attribute
- Previous Page images
- Next Page importNode()
- Go to the Previous 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 that 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 |
The DocumentImplementation object, the document implementation object. |
browser support
document.implementation
It is a 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 to the Previous Level HTML DOM Documents