Sign in Join
FPDoc Onlineexperiment

TDOMImplementation.HasFeature function

Member of TDOMImplementationpublicIn unit Laz2_DOM

Indicates if a feature or module is supported in the DOM implementation.

Declaration

pascal
function HasFeature(const feature: DOMString; const version: DOMString)
: Boolean

Arguments

feature

Feature or module name to examine in the method.

version

Version number or support level required for the feature.

Function result

True when the requested feature is supported at the required version.

Description

HasFeature is a Boolean function which implements the method from the DOMImplementation interface in the DOM Level 2 specification. HasFeature indicates if a feature or module is supported at the specified conformance level for the DOM implementation.

feature contains the name for the feature or module examined in the method.

version is the version number or conformance level needed for the feature.

HasFeature recognizes the following feature names and version numbers in TDOMImplementation:

'CORE'
Version numbers '2.0' or '' (empty string)
'XML'
Version numbers '1.0', '2.0', or '' (empty string)

The return value is True if the specified feature is supported at the requested version number.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.