The isSupported() method checks whether the DOM implementation supports a specific feature and that the feature is supported by the specified node.
The isSupported() method is supported in all major browsers.
Note: Internet Explorer 9 and earlier does not support this method.
Parameter | Type | Description |
---|---|---|
feature | String | Required. Specifies the name of the feature to test |
version | String | Optional. Specifies the version number of the feature to test |
Type | Description |
---|---|
Boolean | true if the feature is supported on this node, otherwise false |
DOM Version | Core Level 2 Node Object |
---|
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc(), and checks whether the DOM implementation supports a specific feature: