Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlConversionLimits

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Source revision 804a7612eee4 with working tree changes
Modifiers sealed

Shared safety and complexity limits applied before HTML is analyzed by target adapters.

Inheritance

  • Object
  • HtmlConversionLimits

Remarks

This is the single owner for source, DOM, stylesheet, selector, responsive-resource, and semantic-metadata budgets. Target adapters may add native-format limits, but should not independently reinterpret these shared HTML boundaries.

Usage

Explore 6 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.

Constructors

public HtmlConversionLimits() #

Methods

public HtmlConversionLimits Clone() #
Returns: HtmlConversionLimits

Creates an independent limits snapshot.

public static HtmlConversionLimits CreateTrustedProfile() #
Returns: HtmlConversionLimits

Creates compatibility-oriented limits for caller-trusted HTML.

public static HtmlConversionLimits CreateUntrustedProfile() #
Returns: HtmlConversionLimits

Creates conservative limits suitable for untrusted HTML ingestion.

Properties

public Int32? MaxInputCharacters { get; set; } #

Maximum UTF-16 source characters, or null for no source-length limit.

public Int32? MaxHtmlNodes { get; set; } #

Maximum DOM nodes, or null for no node limit.

public Int32? MaxHtmlDepth { get; set; } #

Maximum DOM nesting depth, or null for no depth limit.

public Int64? MaxCssBytes { get; set; } #

Maximum UTF-8 bytes in one embedded stylesheet, or null for no per-sheet limit.

public Int64? MaxTotalCssBytes { get; set; } #

Maximum UTF-8 bytes across embedded stylesheets, or null for no total limit.

public Int32? MaxCssRules { get; set; } #

Maximum active, selector-expanded CSS style entries, or null for no limit.

public Int32? MaxCssRuleCandidates { get; set; } #

Maximum selector-expanded style entries examined before document-presence filtering, or null for no limit.

public Int32? MaxCssDeclarations { get; set; } #

Maximum declarations across active, selector-expanded style entries, or null for no limit.

public Int32? MaxCssTokens { get; set; } #

Maximum lexical tokens produced while parsing one inline declaration block, or null for no token limit.

public Int32? MaxCssNestingDepth { get; set; } #

Maximum nested CSS grouping/rule-block depth. Defaults to 256 even for trusted input.

public Int32? MaxCssSyntaxNodes { get; set; } #

Maximum syntax nodes materialized while parsing one inline declaration block, or null for no node limit.

public Int32? MaxCssSelectorCharacters { get; set; } #

Maximum UTF-16 characters in one selector list after CSS nesting is resolved.

public Int32? MaxCssSelectorsPerRule { get; set; } #

Maximum selectors in one rule after CSS nesting is resolved.

public Int64? MaxSelectorEvaluations { get; set; } #

Maximum element/selector match attempts, or null for no evaluation limit.

public Int32? MaxResponsiveImageCandidates { get; set; } #

Maximum responsive image candidates per source set, or null for no candidate limit.

public Int32? MaxResponsiveImageSizesCharacters { get; set; } #

Maximum UTF-16 characters parsed from one responsive image sizes value, or null for no limit.

public Int32? MaxSemanticMetadataCharacters { get; set; } #

Maximum characters accepted from one semantic metadata field.