We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

supports

« DOM Reference

Summary

The supports method tests if this DOM implementation supports a particular feature.

Syntax

boolean = element.supports(feature[, version])

Parameters

feature is a string that contains the name of the feature (e.g., "") version is a string containing the version number of the feature.

Example

if ( document.supports("package", "4.0") ) {     // do something that only package 4.0 allows }

Notes

If version is not supplied, the method returns true if any version of the specified feature is supported.

Specification

Not part of the specification.

Document Tags and Contributors

Last updated by: Dria,