Table of Contents

Interface ISelector

Namespace
AngleSharp.Css.Dom
Assembly
AngleSharp.dll

Represents a CSS selector for matching elements. More information: http://dev.w3.org/csswg/selectors4/

public interface ISelector
Extension Methods

Properties

Specificity

Gets the specificity of the given selector.

Priority Specificity { get; }

Property Value

Priority

Text

Gets the string representation of the selector.

string Text { get; }

Property Value

string

Methods

Accept(ISelectorVisitor)

Accepts a selector visitor to expose more information.

void Accept(ISelectorVisitor visitor)

Parameters

visitor ISelectorVisitor

The visitor for showing around.

Match(IElement, IElement?)

Determines if the given object is matched by this selector.

bool Match(IElement element, IElement? scope)

Parameters

element IElement

The element to be matched.

scope IElement

The selector scope.

Returns

bool

True if the selector matches the given element, otherwise false.