Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlAccessibilitySemantics

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Modifiers
static

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? required
includeTextFallback bool = false optional

Returns

string
public static string GetImageAccessibleName(HtmlElement? element) #

Computes the accessible image name from owned document semantics.

Parameters

element OfficeIMO.Html.Dom.HtmlElement? required

Returns

string
public static bool HasEpubType(HtmlElement? element, string semanticType) #

Checks an owned element's EPUB semantic type tokens.

Parameters

element OfficeIMO.Html.Dom.HtmlElement? required
semanticType string required

Returns

bool
public static bool HasRole(HtmlElement? element, string role) #

Checks an owned element's ARIA role tokens.

Parameters

element OfficeIMO.Html.Dom.HtmlElement? required
role string required

Returns

bool
public static bool IsAriaHidden(HtmlElement? element) #

Checks inherited ARIA hidden state.

Parameters

element OfficeIMO.Html.Dom.HtmlElement? required

Returns

bool
public static bool TryGetHeadingLevel(HtmlElement? element, out int level) #

Reads the semantic heading level from an owned element.

Parameters

element OfficeIMO.Html.Dom.HtmlElement? required
level int required

Returns

bool