var isImplemented = document.implementation.hasFeature("feature", "version");
The first parameter is a string that is associated with each module
(e.g., "Core", or
"MouseEvents"), while the second parameter is a
string of the DOM level number for the module (e.g.,
"2.0" or "3.0"). Each module
also maintains its own definition of conformance. The
hasFeature( ) method is supposed to return
true only if the conformance specifications for a
particular module are met.
Netscape 6 and later implements the
document.implementation property (which
corresponds to DOMImplementation) and the
hasFeature( ) method, which as of this writing,
reports that several 2.0 modules are implemented. IE 5 for the Mac
implements the hasFeature( ) method, but it does
not report any modules as being implemented in full. IE 6 for Windows
does not implement the document.implementation
property, so scripts cannot inquire into W3C DOM module status in
this browser version. It will obviously take browser development
reaching critical mass among installed browsers before scripts can
make intelligent use of this feature query mechanism.