# HtmlCssSelectorParser

Parses the selected provider-independent Selectors Level 4 subset.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssSelectorParser.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSelectorParser.cs#L10)

**Modifiers**

static

Parses the selected provider-independent Selectors Level 4 subset.

## Inheritance

- object
- HtmlCssSelectorParser

Filter members 

Show inherited

## Methods

`public static HtmlCssSelectorParseResult Parse(string selector, HtmlCssSelectorOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-parse-string-officeimo-html-css-htmlcssselectoroptions-threading-cancellationtoken)

[HtmlCssSelectorParser.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSelectorParser.cs#L10)

Parses one complex selector. A top-level comma is classified as a selector-list feature.

Parameters

**selector string required**

**options OfficeIMO.Html.Css.HtmlCssSelectorOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`HtmlCssSelectorParseResult`

`public static HtmlCssSelectorListParseResult ParseList(string selectorList, HtmlCssSelectorOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-parselist-string-officeimo-html-css-htmlcssselectoroptions-threading-cancellationtoken)

[HtmlCssSelectorParser.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSelectorParser.cs#L25)

Parses a comma-separated selector list atomically. Every list member must belong to the owned subset.

Parameters

**selectorList string required**

**options OfficeIMO.Html.Css.HtmlCssSelectorOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`HtmlCssSelectorListParseResult`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:9EFE1E6513FAEB527E3082BA6F3F99010D762B7D1FD8BFB8D871E24403A4C607 -->
