HTML DOM Document implementation attribute
- پچھلے پیج images
- بعد کا پیج importNode()
- پچھلے عارضے کو واپس لوٹ 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, document implementation object. |
browser support
document.implementation
یہ DOM Level 1 (1998) کی خصوصیت ہے۔
تمام براوزر اس کا استعمال کرتے ہیں:
کروم | آئی ای | ایج | فائرفاکس | سافری | آپرا |
---|---|---|---|---|---|
کروم | آئی ای | ایج | فائرفاکس | سافری | آپرا |
پشتیبندگی | 9-11 | پشتیبندگی | پشتیبندگی | پشتیبندگی | پشتیبندگی |
- پچھلے پیج images
- بعد کا پیج importNode()
- پچھلے عارضے کو واپس لوٹ HTML DOM Documents