HtmlConversionLimits
OfficeIMO.Html
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 5 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 5
- Property HtmlConversionDocumentOptions.Limits
- Method HtmlConversionLimits.Clone
- Property HtmlConversionLimits.UntrustedDefaults
- Property HtmlNormalizationOptions.Limits
- Property HtmlResourcePipelineOptions.Limits
Constructors
public HtmlConversionLimits() #Methods
public HtmlConversionLimits Clone() #Creates an independent limits snapshot.
Returns
HtmlConversionLimitsInherited Methods
Properties
public static HtmlConversionLimits UntrustedDefaults { get; } #Creates conservative limits suitable for untrusted HTML ingestion.
public int? MaxInputCharacters { get; set; } #Maximum UTF-16 source or normalized serialized characters, or null for no character limit.
public int? MaxHtmlNodes { get; set; } #Maximum DOM nodes, or null for no node limit.
public int? MaxHtmlDepth { get; set; } #Maximum DOM nesting depth, or null for no depth limit.
public long? MaxCssBytes { get; set; } #Maximum UTF-8 bytes in one embedded stylesheet, or null for no per-sheet limit.
public long? MaxTotalCssBytes { get; set; } #Maximum UTF-8 bytes across embedded stylesheets, or null for no total limit.
public int? MaxCssRules { get; set; } #Maximum active, selector-expanded CSS style entries, or null for no limit.
public int? MaxCssRuleCandidates { get; set; } #Maximum selector-expanded style entries examined before document-presence filtering, or null for no limit.
public int? MaxCssDeclarations { get; set; } #Maximum declarations across active, selector-expanded style entries, or null for no limit.
public int? MaxCssTokens { get; set; } #Maximum lexical tokens produced while parsing one inline declaration block, or null for no token limit.
public int? MaxCssNestingDepth { get; set; } #Maximum nested CSS grouping/rule-block depth. Defaults to 256 even for trusted input.
public int? MaxCssSyntaxNodes { get; set; } #Maximum syntax nodes materialized while parsing one inline declaration block, or null for no node limit.
public int? MaxCssSelectorCharacters { get; set; } #Maximum UTF-16 characters in one selector list after CSS nesting is resolved.
public int? MaxCssSelectorsPerRule { get; set; } #Maximum selectors in one rule after CSS nesting is resolved.
public long? MaxSelectorEvaluations { get; set; } #Maximum element/selector match attempts, or null for no evaluation limit.
public int? MaxResponsiveImageCandidates { get; set; } #Maximum responsive image candidates per source set, or null for no candidate limit.
public int? MaxResponsiveImageSizesCharacters { get; set; } #Maximum UTF-16 characters parsed from one responsive image sizes value, or null for no limit.
public int? MaxSemanticMetadataCharacters { get; set; } #Maximum characters accepted from one semantic metadata field.