Table of Contents

Method Supports

Namespace
SharpVectors.Dom
Assembly
SharpVectors.Core.dll

Supports(string, string)

Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.

bool Supports(string feature, string version)

Parameters

feature string

name of the feature to test. This is the same name which can be passed to the method HasFeature(string, string) on IDomImplementation.

version string

This is the version number of the feature to test. In Level 2, version 1, this is the string "2.0". If the version is not specified, supporting any version of the feature will cause the method to return true.

Returns

bool

Returns true if the specified feature is supported on this node, false otherwise.