ZVON > References > DOM2 Reference

hasFeature (method )

Owning interface and usage:  
DOMImplementation.hasFeature(feature, version)

Member of these other interfaces:  
none

Description:  
Test if the DOM implementation implements a specific feature.

Parameters:  
DOMString feature  -  The name of the feature to test (case-insensitive).
DOMString version  -  This is the version number of the feature to test. In Level 2, the string can be either "2.0" or "1.0". If the version is null or empty string, supporting any version of the feature causes the method to return true.

Returns:  
Boolean -  true if the feature is implemented in the specified version, false otherwise.

Exceptions:  
none


Example:
JavaScript:
  var output = document.implementation.hasFeature('HTML', '1.0');
Output:
desired your browser
(who knows :-)