XML DOM isSupported() Method

Node Object Reference Manual

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 an empty string is to detect the support for the version of the feature.

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 supported feature.

For a list of values for the parameter feature and version, see the reference page for “DOMImplementation.hasFeature()”.

See

DOMImplementation.hasFeature()

Node Object Reference Manual