Class
HtmlDomLimitTracker
OfficeIMO.Html
Tracks shared HTML DOM traversal node and depth limits for converter packages.
Inheritance
- object
- HtmlDomLimitTracker
Usage
Explore 1 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 1
- Method HtmlDomLimitTracker.Create
Constructors
public HtmlDomLimitTracker(int? maxHtmlNodes, int? maxHtmlDepth) #Creates a DOM traversal limit tracker.
Parameters
- maxHtmlNodes int?
- Maximum number of traversed DOM nodes, or null for no node limit.
- maxHtmlDepth int?
- Maximum element nesting depth, or null for no depth limit.
Methods
public static HtmlDomLimitTracker? Create(int? maxHtmlNodes, int? maxHtmlDepth) #Creates a tracker only when at least one DOM traversal limit is configured.
Parameters
- maxHtmlNodes int?
- Maximum number of traversed DOM nodes, or null for no node limit.
- maxHtmlDepth int?
- Maximum element nesting depth, or null for no depth limit.
public void RecordElementStart(int depth) #Records a traversed element start and validates its nesting depth.
Parameters
- depth int
- One-based element nesting depth.