public abstract class DOMImplementation
extends Object
The DOMImplementation interface provides a number of methods for performing operations that are
independent of any particular instance of the document object model.
Note that this object is implemented and supported by the web
browser and results of its use may vary.
Field Summary
Fields inherited from org.ecmascript.object.Object
DOMException INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an
illegal character.
DOMException NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the
qualifiedName has a prefix and the namespaceURI is null, or if the
qualifiedName has a prefix that is "xml" and the namespaceURI is different
from "http://www.w3.org/XML/1998/namespace" [Namespaces].
DOMException WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different
document or was created from a different implementation.
var output = document.implementation.hasFeature('HTML', '1.0');
Parameters:
feature
-
The name of the feature to test (case-insensitive).
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.
Return:
Boolean - true if the feature is implemented in the specified version, false otherwise.