Mapping HTML 4.0 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 HTML 4.0 elements and properties map to Microsoft UI Automation control types, control patterns, and properties. The following notes pertain to the table:
- Plain text in a BODY element maps to the Text control type; however, the bounding rectangle of a BODY element includes the immediately preceding non-textual element, if any.
- Because all elements in the following table support the LegacyIAccessible control pattern, this pattern is included in the table only when it exposes information that isn't exposed through any other property.
- A hyphen (-) indicates a property that must be excluded (or the property's value must be empty). A plus sign (+) indicates that a value for the property is required.
HTML
UI Automation
Element (Ancestor)
Properties
Control type
Supported control patterns
Properties
-HREF
Name="The text enclosed by the element's tags"
IsEnabled=true
Value.IsReadOnly=true
Value.Value="http://some.website"
+HREF
Name="The text enclosed by the element's tags"
IsEnabled=true
Value.IsReadOnly=true
Value.Value=""
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name=""
IsEnabled=true
IsKeyboardFocusable=true
LegacyIAccessible.Description="PLUGIN: type=Embed"
-HREF
Name="The ALT text"
IsEnabled=true
IsKeyboardFocusable=true
LegacyIAccessible.Description="link region type: CIRCLE"
Value.IsReadOnly=true
Value.Value=""
+HREF
Name="The ALT text"
IsEnabled=true
IsKeyboardFocusable=true
LegacyIAccessible.Description="link region type: CIRCLE"
Value.IsReadOnly=true
Value.Value="http://some.website"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Not applicable
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by TITLE tags in the HEAD section"
IsEnabled=true
LegacyIAccessible.State="read only"
LegacyIAccessible.Value="file://some/path"
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
IsKeyboardFocusable=true
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="selected, read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Not applicable
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="normal"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
Name="The text enclosed by the element's tags"
IsEnabled=true
IsKeyboardFocusable=true
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="normal"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="normal"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
TYPE = "application/x-shockwave-flash"
Name=""
IsEnabled=true
IsKeyboardFocusable=true
ClassName="MacromediaFlashPlayerActiveX"
Not applicable
-TABINDEX
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
+TABINDEX
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="normal"
+TABINDEX, +TITLE
Name="The TITLE text"
IsEnabled=true
LegacyIAccessible.State="normal"
Not applicable
None
Name="Full path of the source for the FRAME"
IsEnabled=true
IsKeyboardFocusable=true
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Not applicable
Not applicable
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
None
Name="Full path of the source for the IFRAME"
IsEnabled=true
IsKeyboardFocusable=true
-ALT
Name=""
IsEnabled=true
LegacyIAccessible.State="normal"
+ALT
Name="The ALT text"
IsEnabled=true
LegacyIAccessible.State="normal"
TYPE="BUTTON"
Name="The VALUE text"
IsEnabled=true
LegacyIAccessible.State="normal"
TYPE="CHECKBOX"
Name=""
IsEnabled=true
LegacyIAccessible.State="normal"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
TYPE="FILE"
Name=""
IsEnabled=true
IsKeyboardFocusable=true
LegacyIAccessible.Description="Browse…"
Name=""
IsEnabled=true
LegacyIAccessible.Description="Enter name of file to upload"
LegacyIAccessible.State="read only"
Value.IsReadOnly=false
TYPE="HIDDEN"
Not applicable
TYPE="IMAGE"
Name="The ALT text"
IsEnabled=true
LegacyIAccessible.State="normal"
LegacyIAccessible.Value="Some path"
TYPE="PASSWORD"
Name=""
IsEnabled=true
IsKeyboardFocusable=true
IsPassword=true
LegacyIAccessible.State="focusable, protected"
Value.IsReadOnly=false
TYPE="RADIO"
Name=""
IsEnabled=true
LegacyIAccessible.State="normal"
TYPE="RESET"
Name="The VALUE text"
IsEnabled=true
IsKeyboardFocusable=true
LegacyIAccessible.State="focusable"
TYPE="SUBMIT"
Name="The VALUE text"
IsEnabled=true
IsKeyboardFocusable=true
LegacyIAccessible.State="default, focusable"
TYPE="TEXT", -LIST
Name=""
IsEnabled=true
IsKeyboardFocusable=true
LegacyIAccessible.State="focusable"
Value.IsReadOnly=false
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="normal"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="normal"
Not applicable
Not applicable
-TYPE
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="normal"
Not applicable
Not applicable
TYPE = "application/x-silverlight-2"
Name="Silverlight Control"
IsEnabled=true
LegacyIAccessible.State="focusable"
ClassName="MicrosoftSilverlight"
Name="The text enclosed by the element's tags"
IsEnabled=true
IsKeyboardFocusable=true
Name="The LABEL text"
IsEnabled=true
LegacyIAccessible.State="normal"
OPTION (SELECT | OPTGROUP | DATALIST)
Name="The text enclosed by the element's tags"
IsEnabled=true
IsOffscreen=true
LegacyIAccessible="invisible, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Not applicable
+MULTIPLE
Name=""
IsEnabled=true
LegacyIAccessible.State="normal"
Selection.CanSelectMultiple=false
Selection.IsSelectionRequired=true
-MULTIPLE
Name="The TITLE text"
IsEnabled=true
ExpandCollapse.ExpandCollapseState=Collapsed
Value.IsReadOnly=false
Value.Value="The selected text in the ComboBox"
Name="The TITLE text"
IsEnabled=true
IsOffscreen=true
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only"
Grid,
IsEnabled=true
LegacyIAccessible.State="normal"
Not applicable
Name=""
IsEnabled=true
LegacyIAccessible.State="normal"
Name=""
IsEnabled=true
IsKeyboardFocusable=true
Value.IsReadOnly=false
Value.Value="The text in the TEXTAREA element"
Not applicable
(not column/row header)
Name=""
IsEnabled=true
LegacyIAccessible.Role="row header"
LegacyIAccessible.State="normal"
(column header)
Name=""
IsEnabled=true
LegacyIAccessible.Role="column header"
LegacyIAccessible.State="normal"
(row header)
Name=""
IsEnabled=true
LegacyIAccessible.Role="row header"
LegacyIAccessible.State="normal"
Not applicable
Not applicable
+TABINDEX
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="normal"
-TABINDEX
Not applicable
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"
Name="The text enclosed by the element's tags"
IsEnabled=true
IsKeyboardFocusable=true
Name="The text enclosed by the element's tags"
IsEnabled=true
LegacyIAccessible.State="read only, selectable"