[All Packages]  [This Package]  [Previous Class]  [Next Class]

Class: DOMImplementation

This class contains methods relating to the specific DOM implementation supported by the parser.


Method Index

hasFeature Detect if the named feature is supported

Methods

hasFeature

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

Prototype:
boolean hasFeature(DOMString feature, DOMString version)

Arguments:
feature -- The package name of the feature to test. In Level 1, the legal values are "HTML" and "XML" (case-insensitive)
version -- This is the version number of the package name to test. In Level 1, this is the string "1.0". If the version is not specified, supporting any version of the feature will cause the method to return true.

Returns:
boolean -- feature is supported