XML DOM - XML DOM DOMImplementation Object - DOM DOMImplementation Object Method hasFeature - XML DOM

Explain the hasFeature method of the DOMImplementation Object method

The testing of the implementation of a specific feature and version is done by hasFeature method.

Syntax

The syntax for using the hasFeature method is as follows:

S.No.
Parameter & Description
1
feature
It is aDOMStringrepresenting the feature name.
2
version
It is aDOMStringrepresenting the version of the specification defining the feature.

Example

The illustration below displays the hasFeature method usage.

Execution

The file is saved as domimplementation_hasfeature.htm on the server path and this file should be on the same path as that of node.xml in the server. The output appears as follows:

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

XML DOM Topics