Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlCssSelector

Namespace OfficeIMO.Html.Css
Assembly OfficeIMO.Html.Core
Modifiers sealed

A parsed selector that can match the owned DOM without a selector provider.

Inheritance

  • Object
  • HtmlCssSelector

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

Matches 2 overloads
public Boolean Matches(HtmlElement element) #
Returns: Boolean

Matches an element using only owned DOM state.

Parameters

element OfficeIMO.Html.Dom.HtmlElement requiredposition: 0
public Boolean Matches(HtmlElement element, CancellationToken cancellationToken) #
Returns: Boolean

Matches an element using only owned DOM state and observes cancellation while traversing the tree.

Parameters

element OfficeIMO.Html.Dom.HtmlElement requiredposition: 0
cancellationToken System.Threading.CancellationToken requiredposition: 1

Properties

public String Source { get; } #

The trimmed selector source.

public HtmlCssSelectorSpecificity Specificity { get; } #

The selector specificity computed from the parsed selector model.

public Int32 CompoundCount { get; } #

Number of compound selectors in the complex selector.

public IReadOnlyList<HtmlCssCombinator> Combinators { get; } #

Combinators in left-to-right source order.