API Reference
Class
HtmlAccessibilitySemantics
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(IElement element, Boolean includeTextFallback = false) #Returns:
StringResolves an accessible name using ARIA labelling, host-language alternatives, optional element text, and title fallback. This does not mutate the DOM.
Parameters
- element AngleSharp.Dom.IElement
- Element to name.
- includeTextFallback System.Boolean = false
- Whether normalized descendant text may supply the name.
public static String GetImageAccessibleName(IElement element) #Returns:
StringResolves an accessible image name, including image alt semantics for custom elements that a converter explicitly aliases to an image.
Parameters
- element AngleSharp.Dom.IElement
public static Boolean HasEpubType(IElement element, String semanticType) #Returns:
BooleanReturns whether an element declares the requested EPUB structural semantic.
Parameters
- element AngleSharp.Dom.IElement
- semanticType System.String
public static Boolean HasRole(IElement element, String role) #Returns:
BooleanReturns whether an element declares the requested ARIA role.
Parameters
- element AngleSharp.Dom.IElement
- role System.String
public static Boolean TryGetHeadingLevel(IElement element, out Int32 level) #Returns:
BooleanResolves a heading level from a native heading element or an ARIA heading role. ARIA levels outside the Markdown heading range are clamped to levels 1 through 6.
Parameters
- element AngleSharp.Dom.IElement
- level System.Int32@
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object