HTML DOM Node isSupported() Method
Example
Check if the feature Core, version 2.0, is supported for the <button> element:
var item = document.getElementsByTagName("BUTTON")[0];
item.isSupported("Core", "2.0");
The result will be:
true
Try it yourself »
Definition and Usage
The isSupported() method checks if a specified feature is supported for the specified node.
Note: This method is obsolete in many browsers. Try to avoid using it.
Browser Support
The numbers in the table specify the first browser version that fully supports the method.
Method | |||||
---|---|---|---|---|---|
isSupported() | Not supported | 9.0 | Not supported | Yes | Not supported |
Note: This method was supported in Chrome, Firefox and Opera before, but they no longer support it.
Syntax
node.isSupported(feature,version)
Parameters
Parameter | Type | Description |
---|---|---|
feature | String | Required. Defines the feature you want to check if is supported |
version | String | Optional. Defines the version of the feature you want to check if is supported |
Technical Details
Return Value: | A Boolean, returns true if the feature is supported, otherwise false |
---|---|
DOM Version | Core Level 2 Node Object |