This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

isSupported

Summary

Returns a value indicating whether or not the object supports a specific DOM standard.

Method of dom/Nodedom/Node

Syntax

var isSupported = node.isSupported(/* see parameter list */);

Parameters

feature

Data-type
String

The name of the standard.

version

Data-type
String

The version number of the standard. Supported values vary according to the standard.

Return Value

Returns an object of type BooleanBoolean

Whether the standard is supported.

Examples

<div id="divMain">
</div>

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

Notes

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.

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.

Related specifications

DOM Level 3 Core
Recommendation
Living Standard
Recommendation

See also

External resources

W3C DOM Conformance Tests

Attributions