API Reference
Class
HtmlCssSelector
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.
Returned or exposed by
- Property HtmlCssSelectorList.Selectors
- Property HtmlCssSelectorParseResult.Selector
Methods
Matches 2 overloads
public Boolean Matches(HtmlElement element) #Returns:
BooleanMatches an element using only owned DOM state.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement
public Boolean Matches(HtmlElement element, CancellationToken cancellationToken) #Returns:
BooleanMatches an element using only owned DOM state and observes cancellation while traversing the tree.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement
- cancellationToken System.Threading.CancellationToken
Inherited Methods
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.