Class
HtmlCssSelector
OfficeIMO.Html.Css
A parsed selector that can match the owned DOM without a selector provider.
Inheritance
- object
- HtmlCssSelector
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property HtmlCssSelectorList.Selectors
- Property HtmlCssSelectorParseResult.Selector
Methods
Matches 2 overloads
public bool Matches(HtmlElement element) #Matches an element using only owned DOM state.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement
Returns
boolpublic bool Matches(HtmlElement element, CancellationToken cancellationToken) #Matches an element using only owned DOM state and observes cancellation while traversing the tree.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement
- cancellationToken System.Threading.CancellationToken
Returns
boolInherited Methods
Properties
public HtmlCssSelectorSpecificity Specificity { get; } #The selector specificity computed from the parsed selector model.
public int CompoundCount { get; } #Number of compound selectors in the complex selector.
public IReadOnlyList<HtmlCssCombinator> Combinators { get; } #Combinators in left-to-right source order.