DOMImplementation Interface

The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of a document object model.



IDL Definition

Interface DOMImplementation {

        boolean                     hasFeature(in DOMString feature,
                                               in DOMString version);   
}
};

Semantic Requirements

    Methods

  1. The feature argument in the hasFeature(feature,version) method is the package name of the feature to test. In level 1, the legal values are "HTML" and "XML" (case-insensitive).
  2. The version argument in the hasFeature(feature,version) method is the version number of the package name to test. In level 1, version 1.0, this is the string "1.0".
  3. If the version is no specified in the hasFeature(feature,version) method then supporting any version of the feature will cause the method to return true.
  4. The hasFeature(feature,version) method returns true if the feature is implemented in the specified version.
  5. The hasFeature(feature,version) method returns false if the feature is not implemented in the specified version.

If you have comments or suggestions, email me at mbrady@nist.gov