Implementation.hasFeature() (Method)

A means of enquiring whether a certain feature is supported by the DOM implementation.


DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:Boolean primitive
JavaScript syntax:-myImplementation.hasFeature(aFeature, aVersion)
Argument list:aFeatureThe name of a feature
aVersionThe feature version

Here is a list of feature and version codes that have been obtained by inspecting the DOM specifications. Note that this list may not be complete or exhaustive as only those values that are mentioned in the DOM specifications published to date have been included:

StringVersionFeature described
CSS2.0DOM level 2 CSS support
CSS22.0DOM level support for CSS extended interfaces
Events2.0DOM level 2 event model
HTML1.0DOM level 1 HTML model
HTML2.0DOM level 2 HTML model
HTMLEvents2.0DOM level 2 HTML event support
MouseEvents2.0DOM level 2 mouse event support (part of Events)
MutationEvents2.0DOM level 2 mutation event support (part of Events)
Range2.0DOM level 2 text range module
StyleSheets2.0DOM level 2 StyleSheets module
Traversal2.0DOM level 2 document traversal module
UIEvents2.0DOM level 2 user interface event support (part of Events)
Views2.0DOM level 2 views module
XML1.0DOM level 1 XML extended interfaces
XML2.0DOM level 2 XML extended interfaces

See also:Event object, MouseEvent object, MutationEvent object, UIEvent object