[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMImplementation.HasFeature

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

Declaration

Source position: laz2_dom.pas line 443

public function TDOMImplementation.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.


Version 4.0 Generated 2025-05-03 Home