Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlCssTokenizer

OfficeIMO.Html.Css

Namespace
OfficeIMO.Html.Css
Assembly
OfficeIMO.Html.Core
Source revision
56dd0d38e0b5 with working tree changes
Modifiers
static

Tokenizes CSS without a parser provider, resource loading or property validation.

Inheritance

  • object
  • HtmlCssTokenizer

Methods

public static IReadOnlyList<HtmlCssToken> Tokenize(string source, HtmlCssTokenizationOptions? options = null, CancellationToken cancellationToken = default) #

Returns immutable tokens, preserving comments, declaration order and original source spans. Escapes, nulls, unpaired surrogates and newlines are normalized in decoded values only. A canceled or budget-exhausted operation publishes no partial token list.

Parameters

source string required
options OfficeIMO.Html.Css.HtmlCssTokenizationOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IReadOnlyList<HtmlCssToken>