Class
HtmlAccessibilitySemantics
OfficeIMO.Html
Resolves the small, deterministic subset of HTML and ARIA accessibility semantics used by OfficeIMO document conversion pipelines.
Inheritance
- object
- HtmlAccessibilitySemantics
Methods
public static string GetAccessibleName(HtmlElement? element, bool includeTextFallback = false) #Computes an accessible name, optionally using text as the final fallback.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement?
- includeTextFallback bool = false
Returns
stringpublic static string GetImageAccessibleName(HtmlElement? element) #Computes the accessible image name from owned document semantics.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement?
Returns
stringpublic static bool HasEpubType(HtmlElement? element, string semanticType) #Checks an owned element's EPUB semantic type tokens.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement?
- semanticType string
Returns
boolpublic static bool HasRole(HtmlElement? element, string role) #Checks an owned element's ARIA role tokens.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement?
- role string
Returns
boolpublic static bool TryGetHeadingLevel(HtmlElement? element, out int level) #Reads the semantic heading level from an owned element.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement?
- level int
Returns
bool