Share via


Mapping HTML5 to UI Automation

[This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation]

The table in this section shows how HTML5 elements and element types map to Microsoft Active Accessibility roles, and to Microsoft UI Automation control types and control patterns.

Note  The following table shows the default Microsoft Active Accessibility roles and UI Automation control types. If an element includes an Accessible Rich Internet Applications (ARIA) role attribute, it overrides the defaults.

 

UIA control patterns

Element

Element type

MSAA role

UIA control type

Supported

Unsupported

AUDIO, VIDEO

Not applicable

ROLE_SYSTEM_GROUPING

Group

Subelements of AUDIO/VIDEO

(media controls)

buttons

ROLE_SYSTEM_PUSHBUTTON

Button

Invoke

Toggle

text

ROLE_SYSTEM_STATICTEXT

Text

sliders

ROLE_SYSTEM_SLIDER

Slider

CANVAS

Not applicable

ROLE_SYSTEM_GRAPHIC

Image

INPUT

htmlInputRange

ROLE_SYSTEM_SLIDER

Slider

RangeValue

htmlInputUrl

htmlInputEmail

htmlInputNumber

htmlInputTel

htmlInputSearch

ROLE_SYSTEM_TEXT

Edit

Value, Text

Invoke, Selection

PROGRESS

Not applicable

ROLE_SYSTEM_PROGRESSBAR

ProgressBar

RangeValue

SVG

anchor (a)

ROLE_SYSTEM_LINK

Hyperlink

Invoke

text

tspan

textpath

ROLE_SYSTEM_TEXT

Text

all other types

ROLE_SYSTEM_GRAPHIC

Image

 

Mapping HTML and ARIA properties to UI Automation

UI Automation