Node.isSupported Redirect 1

« DOM Reference « Node

Deprecated
This feature has been removed from the Web. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

The Node.isSupported()returns a Boolean flag containing the result of a test whether the DOM implementation implements a specific feature and this feature is supported by the specific node.

Syntax

boolValue = element.isSupported(feature, version)

Parameters

feature
Is a DOMString containing the name of the feature to test. This is the same name which can be passed to the method hasFeature on DOMImplementation. Possible values defined within the core DOM specification are listed on the DOM Level 2 Conformance Section.
version
Is a DOMString containing the version number of the feature to test. In DOM Level 2, version 1, this is the string 2.0. If the version is not specified, supporting any version of the feature will cause the method to return true.

Example

<div id="doc">
</div>

<script>
 // Get an element and check to see if its supports the DOM2 HTML Module.
 var main = document.getElementById('doc');
 var output = main.isSupported('HTML', '2.0');
</script>

Specifications

Specification Status Comment
DOM Living Standard Removed from the specification.
Document Object Model (DOM) Level 3 Core Specification Recommendation No change from Document Object Model (DOM) Level 2 Core Specification.
Document Object Model (DOM) Level 2 Core Specification Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? Supported from 1.0 (1.7 or earlier) to 21.0 (21.0).
Removed in 22.0 (22.0) [1]
? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? Supported from 1.0 (1.0) to 21.0 (21.0).
Removed in 22.0 (22.0) [1]
? ? ?

Gecko-specific notes

[1] Starting with Gecko 19.0 (Firefox 19.0 / Thunderbird 19.0 / SeaMonkey 2.16) this method will always return true (bug 801425) and starting with Gecko 22.0 (Firefox 22.0 / Thunderbird 22.0 / SeaMonkey 2.19) this method has been removed.

See also

  • The Node interface it belongs to.

Document Tags and Contributors

Contributors to this page: Sheppy
Last updated by: Sheppy,