XML DOM isSupported() method
Definition and usage
The isSupported() method is used to determine whether the current node supports a certain feature.
Syntax:
nodeObject.isSupported(feature, version)
Parameters | Description |
---|---|
feature | The name of the feature to be detected. |
version | The version number of the feature to be detected, if the support for the version of the feature to be detected is to be detected, it is an empty string. |
Return value
If the current node supports the specified version of the specified feature, it returns true, otherwise it returns false.
Description
The W3C DOM standard is modularized, and its implementation does not have to implement all modules or features specified by the standard. This method is used to detect whether the implementation of the current node supports the specified version of the specified feature.
For a list of values for the feature and version parameters, see the 'DOMImplementation.hasFeature()' reference page.