Mapping HTML5 to UI Automation
09/24/2015
2 分钟可看完
本文内容
[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
Subelements of AUDIO/VIDEO
(media controls)
buttons
ROLE_SYSTEM_PUSHBUTTON
text
ROLE_SYSTEM_STATICTEXT
sliders
ROLE_SYSTEM_SLIDER
CANVAS
Not applicable
ROLE_SYSTEM_GRAPHIC
INPUT
htmlInputRange
ROLE_SYSTEM_SLIDER
htmlInputUrl
htmlInputEmail
htmlInputNumber
htmlInputTel
htmlInputSearch
ROLE_SYSTEM_TEXT
PROGRESS
Not applicable
ROLE_SYSTEM_PROGRESSBAR
SVG
anchor (a)
ROLE_SYSTEM_LINK
text
tspan
textpath
ROLE_SYSTEM_TEXT
all other types
ROLE_SYSTEM_GRAPHIC
Related topics