\href{https://travis-ci.org/A11yance/axobject-query}{\texttt{ }}

{\bfseries{NOTICE\+: The API for AXObject Query is very much under development until a major version release. Please be aware that data structures might change in minor version releases before 1.\+0.\+0 is released.}}\hypertarget{md_sfcode_node_modules_axobject_query_README_autotoc_md3631}{}\doxysection{AXObject Query}\label{md_sfcode_node_modules_axobject_query_README_autotoc_md3631}
Approximate model of the \href{https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/accessibility/AXObject.h}{\texttt{ Chrome AXObject}}.

The project attempts to map the AXObject concepts to the \href{https://www.w3.org/TR/wai-aria-1.1/\#roles}{\texttt{ WAI-\/\+ARIA 1.\+1 Roles Model}} so that a complete representation of the semantic HTML layer, as it is exposed assistive technology, can be obtained.\hypertarget{md_sfcode_node_modules_axobject_query_README_autotoc_md3632}{}\doxysubsection{Utilities}\label{md_sfcode_node_modules_axobject_query_README_autotoc_md3632}
\hypertarget{md_sfcode_node_modules_axobject_query_README_autotoc_md3633}{}\doxysubsubsection{AXObjects}\label{md_sfcode_node_modules_axobject_query_README_autotoc_md3633}

\begin{DoxyCode}{0}
\DoxyCodeLine{import \{ AXObjects \} from 'axobject-\/query'; }

\end{DoxyCode}


AXObjects are mapped to their HTML and ARIA concepts in the {\ttfamily related\+Concepts} field.

The {\ttfamily type} field is a loose association of an AXObject to the {\ttfamily window}, {\ttfamily structure} and {\ttfamily widget} abstract roles in ARIA. The {\ttfamily generic} value is given to {\ttfamily Div\+Role}; it does not exist in ARIA. Divs are special in HTML in the way that they are used as generic containers. Span might have also been associated with a generic type except that there is no {\ttfamily Span\+Role} AXObject.


\begin{DoxyCode}{0}
\DoxyCodeLine{Map \{}
\DoxyCodeLine{  'AbbrRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'AlertDialogRole' => \{ relatedConcepts: [ [Object] ], type: 'window' \},}
\DoxyCodeLine{  'AlertRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'AnnotationRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'ApplicationRole' => \{ relatedConcepts: [ [Object] ], type: 'window' \},}
\DoxyCodeLine{  'ArticleRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'AudioRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'BannerRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'BlockquoteRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'BusyIndicatorRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'ButtonRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'CanvasRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'CaptionRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'CellRole' => \{ relatedConcepts: [ [Object], [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'CheckBoxRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'ColorWellRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'ColumnHeaderRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'ColumnRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'ComboBoxRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'ComplementaryRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'ContentInfoRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'DateRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'DateTimeRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'DefinitionRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'DescriptionListDetailRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'DescriptionListRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'DescriptionListTermRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'DetailsRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'DialogRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'window' \},}
\DoxyCodeLine{  'DirectoryRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'DisclosureTriangleRole' => \{ relatedConcepts: [], type: 'widget' \},}
\DoxyCodeLine{  'DivRole' => \{ relatedConcepts: [ [Object] ], type: 'generic' \},}
\DoxyCodeLine{  'DocumentRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'EmbeddedObjectRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'FeedRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'FigcaptionRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'FigureRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'FooterRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'FormRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'GridRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'GroupRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'HeadingRole' => \{ relatedConcepts: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'IframePresentationalRole' => \{ relatedConcepts: [], type: 'window' \},}
\DoxyCodeLine{  'IframeRole' => \{ relatedConcepts: [ [Object] ], type: 'window' \},}
\DoxyCodeLine{  'IgnoredRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'ImageMapLinkRole' => \{ relatedConcepts: [], type: 'widget' \},}
\DoxyCodeLine{  'ImageMapRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'ImageRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'InlineTextBoxRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'InputTimeRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'LabelRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'LegendRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'LineBreakRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'LinkRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'ListBoxOptionRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'ListBoxRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'ListItemRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'ListMarkerRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'ListRole' => \{ relatedConcepts: [ [Object], [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'LogRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'MainRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'MarkRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'MarqueeRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'MathRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'MenuBarRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'MenuButtonRole' => \{ relatedConcepts: [], type: 'widget' \},}
\DoxyCodeLine{  'MenuItemRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'MenuItemCheckBoxRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'MenuItemRadioRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'MenuListOptionRole' => \{ relatedConcepts: [], type: 'widget' \},}
\DoxyCodeLine{  'MenuListPopupRole' => \{ relatedConcepts: [], type: 'widget' \},}
\DoxyCodeLine{  'MenuRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'MeterRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'NavigationRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'NoneRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'NoteRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'OutlineRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'ParagraphRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'PopUpButtonRole' => \{ relatedConcepts: [], type: 'widget' \},}
\DoxyCodeLine{  'PreRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'PresentationalRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'ProgressIndicatorRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'RadioButtonRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'RadioGroupRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'RegionRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'RootWebAreaRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'RowHeaderRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'RowRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'RubyRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'RulerRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'ScrollAreaRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'ScrollBarRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'SeamlessWebAreaRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'SearchRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'SearchBoxRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'SliderRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'SliderThumbRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'SpinButtonRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'SpinButtonPartRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'SplitterRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'StaticTextRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'StatusRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'SVGRootRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'SwitchRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'TabGroupRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'TabRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'TableHeaderContainerRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'TableRole' => \{ relatedConcepts: [ [Object], [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'TabListRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'TabPanelRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'TermRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'TextFieldRole' => \{ relatedConcepts: [ [Object], [Object], [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'TimeRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'TimerRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'ToggleButtonRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'ToolbarRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'TreeRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'TreeGridRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'TreeItemRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'UserInterfaceTooltipRole' => \{ relatedConcepts: [ [Object] ], type: 'structure' \},}
\DoxyCodeLine{  'VideoRole' => \{ relatedConcepts: [ [Object] ], type: 'widget' \},}
\DoxyCodeLine{  'WebAreaRole' => \{ relatedConcepts: [], type: 'structure' \},}
\DoxyCodeLine{  'WindowRole' => \{ relatedConcepts: [], type: 'window' \}}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_axobject_query_README_autotoc_md3634}{}\doxysubsubsection{AXObject to Element}\label{md_sfcode_node_modules_axobject_query_README_autotoc_md3634}

\begin{DoxyCode}{0}
\DoxyCodeLine{import \{ AXObjectElements \} from 'axobject-\/query'; }

\end{DoxyCode}


AXObjects are mapped to their related HTML concepts, which may require attributes (in the case of inputs) to obtain the correct association.


\begin{DoxyCode}{0}
\DoxyCodeLine{Map \{}
\DoxyCodeLine{  'AbbrRole' => Set \{ \{ name: 'abbr' \} \},}
\DoxyCodeLine{  'ArticleRole' => Set \{ \{ name: 'article' \} \},}
\DoxyCodeLine{  'AudioRole' => Set \{ \{ name: 'audio' \} \},}
\DoxyCodeLine{  'BlockquoteRole' => Set \{ \{ name: 'blockquote' \} \},}
\DoxyCodeLine{  'ButtonRole' => Set \{ \{ name: 'button' \} \},}
\DoxyCodeLine{  'CanvasRole' => Set \{ \{ name: 'canvas' \} \},}
\DoxyCodeLine{  'CaptionRole' => Set \{ \{ name: 'caption' \} \},}
\DoxyCodeLine{  'CellRole' => Set \{ \{ name: 'td' \} \},}
\DoxyCodeLine{  'CheckBoxRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'ColorWellRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'ColumnHeaderRole' => Set \{ \{ name: 'th' \} \},}
\DoxyCodeLine{  'DateRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'DateTimeRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'DefinitionRole' => Set \{ \{ name: 'dfn' \} \},}
\DoxyCodeLine{  'DescriptionListDetailRole' => Set \{ \{ name: 'dd' \} \},}
\DoxyCodeLine{  'DescriptionListRole' => Set \{ \{ name: 'dl' \} \},}
\DoxyCodeLine{  'DescriptionListTermRole' => Set \{ \{ name: 'dt' \} \},}
\DoxyCodeLine{  'DetailsRole' => Set \{ \{ name: 'details' \} \},}
\DoxyCodeLine{  'DialogRole' => Set \{ \{ name: 'dialog' \} \},}
\DoxyCodeLine{  'DirectoryRole' => Set \{ \{ name: 'dir' \} \},}
\DoxyCodeLine{  'DivRole' => Set \{ \{ name: 'div' \} \},}
\DoxyCodeLine{  'EmbeddedObjectRole' => Set \{ \{ name: 'embed' \} \},}
\DoxyCodeLine{  'FigcaptionRole' => Set \{ \{ name: 'figcaption' \} \},}
\DoxyCodeLine{  'FigureRole' => Set \{ \{ name: 'figure' \} \},}
\DoxyCodeLine{  'FooterRole' => Set \{ \{ name: 'footer' \} \},}
\DoxyCodeLine{  'FormRole' => Set \{ \{ name: 'form' \} \},}
\DoxyCodeLine{  'HeadingRole' => Set \{ \{ name: 'h1' \}, \{ name: 'h2' \}, \{ name: 'h3' \}, \{ name: 'h4' \}, \{ name: 'h5' \}, \{ name: 'h6' \} \},}
\DoxyCodeLine{  'IframeRole' => Set \{ \{ name: 'iframe' \} \},}
\DoxyCodeLine{  'ImageMapRole' => Set \{ \{ name: 'img', attributes: [Object] \} \},}
\DoxyCodeLine{  'ImageRole' => Set \{ \{ name: 'img' \} \},}
\DoxyCodeLine{  'InlineTextBoxRole' => Set \{ \{ name: 'input' \} \},}
\DoxyCodeLine{  'InputTimeRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'LabelRole' => Set \{ \{ name: 'label' \} \},}
\DoxyCodeLine{  'LegendRole' => Set \{ \{ name: 'legend' \} \},}
\DoxyCodeLine{  'LineBreakRole' => Set \{ \{ name: 'br' \} \},}
\DoxyCodeLine{  'LinkRole' => Set \{ \{ name: 'a', attributes: [Object] \} \},}
\DoxyCodeLine{  'ListBoxOptionRole' => Set \{ \{ name: 'option' \} \},}
\DoxyCodeLine{  'ListItemRole' => Set \{ \{ name: 'li' \} \},}
\DoxyCodeLine{  'ListRole' => Set \{ \{ name: 'ul' \}, \{ name: 'ol' \} \},}
\DoxyCodeLine{  'MainRole' => Set \{ \{ name: 'main' \} \},}
\DoxyCodeLine{  'MarkRole' => Set \{ \{ name: 'mark' \} \},}
\DoxyCodeLine{  'MarqueeRole' => Set \{ \{ name: 'marquee' \} \},}
\DoxyCodeLine{  'MenuItemRole' => Set \{ \{ name: 'menuitem' \} \},}
\DoxyCodeLine{  'MenuRole' => Set \{ \{ name: 'menu' \} \},}
\DoxyCodeLine{  'MeterRole' => Set \{ \{ name: 'meter' \} \},}
\DoxyCodeLine{  'NavigationRole' => Set \{ \{ name: 'nav' \} \},}
\DoxyCodeLine{  'ParagraphRole' => Set \{ \{ name: 'p' \} \},}
\DoxyCodeLine{  'PreRole' => Set \{ \{ name: 'pre' \} \},}
\DoxyCodeLine{  'ProgressIndicatorRole' => Set \{ \{ name: 'progress' \} \},}
\DoxyCodeLine{  'RadioButtonRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'RowHeaderRole' => Set \{ \{ name: 'th', attributes: [Object] \} \},}
\DoxyCodeLine{  'RowRole' => Set \{ \{ name: 'tr' \} \},}
\DoxyCodeLine{  'RubyRole' => Set \{ \{ name: 'ruby' \} \},}
\DoxyCodeLine{  'SearchBoxRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'SliderRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'SpinButtonRole' => Set \{ \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'TableRole' => Set \{ \{ name: 'table' \} \},}
\DoxyCodeLine{  'TextFieldRole' => Set \{ \{ name: 'input' \}, \{ name: 'input', attributes: [Object] \} \},}
\DoxyCodeLine{  'TimeRole' => Set \{ \{ name: 'time' \} \},}
\DoxyCodeLine{  'VideoRole' => Set \{ \{ name: 'video' \}}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_axobject_query_README_autotoc_md3635}{}\doxysubsubsection{AXObject to Role}\label{md_sfcode_node_modules_axobject_query_README_autotoc_md3635}

\begin{DoxyCode}{0}
\DoxyCodeLine{import \{ AXObjectRoles \} from 'axobject-\/query'; }

\end{DoxyCode}


AXObjects are mapped to their related ARIA concepts..


\begin{DoxyCode}{0}
\DoxyCodeLine{Map \{}
\DoxyCodeLine{  'AlertDialogRole' => Set \{ \{ name: 'alertdialog' \} \},}
\DoxyCodeLine{  'AlertRole' => Set \{ \{ name: 'alert' \} \},}
\DoxyCodeLine{  'ApplicationRole' => Set \{ \{ name: 'application' \} \},}
\DoxyCodeLine{  'ArticleRole' => Set \{ \{ name: 'article' \} \},}
\DoxyCodeLine{  'BannerRole' => Set \{ \{ name: 'banner' \} \},}
\DoxyCodeLine{  'BusyIndicatorRole' => Set \{ \{ attributes: [Object] \} \},}
\DoxyCodeLine{  'ButtonRole' => Set \{ \{ name: 'button' \} \},}
\DoxyCodeLine{  'CellRole' => Set \{ \{ name: 'cell' \}, \{ name: 'gridcell' \} \},}
\DoxyCodeLine{  'CheckBoxRole' => Set \{ \{ name: 'checkbox' \} \},}
\DoxyCodeLine{  'ColumnHeaderRole' => Set \{ \{ name: 'columnheader' \} \},}
\DoxyCodeLine{  'ComboBoxRole' => Set \{ \{ name: 'combobox' \} \},}
\DoxyCodeLine{  'ComplementaryRole' => Set \{ \{ name: 'complementary' \} \},}
\DoxyCodeLine{  'ContentInfoRole' => Set \{ \{ name: 'structureinfo' \} \},}
\DoxyCodeLine{  'DialogRole' => Set \{ \{ name: 'dialog' \} \},}
\DoxyCodeLine{  'DirectoryRole' => Set \{ \{ name: 'directory' \} \},}
\DoxyCodeLine{  'DocumentRole' => Set \{ \{ name: 'document' \} \},}
\DoxyCodeLine{  'FeedRole' => Set \{ \{ name: 'feed' \} \},}
\DoxyCodeLine{  'FigureRole' => Set \{ \{ name: 'figure' \} \},}
\DoxyCodeLine{  'FormRole' => Set \{ \{ name: 'form' \} \},}
\DoxyCodeLine{  'GridRole' => Set \{ \{ name: 'grid' \} \},}
\DoxyCodeLine{  'GroupRole' => Set \{ \{ name: 'group' \} \},}
\DoxyCodeLine{  'HeadingRole' => Set \{ \{ name: 'heading' \} \},}
\DoxyCodeLine{  'ImageRole' => Set \{ \{ name: 'img' \} \},}
\DoxyCodeLine{  'LinkRole' => Set \{ \{ name: 'link' \} \},}
\DoxyCodeLine{  'ListBoxOptionRole' => Set \{ \{ name: 'option' \} \},}
\DoxyCodeLine{  'ListBoxRole' => Set \{ \{ name: 'listbox' \} \},}
\DoxyCodeLine{  'ListItemRole' => Set \{ \{ name: 'listitem' \} \},}
\DoxyCodeLine{  'ListRole' => Set \{ \{ name: 'list' \} \},}
\DoxyCodeLine{  'LogRole' => Set \{ \{ name: 'log' \} \},}
\DoxyCodeLine{  'MainRole' => Set \{ \{ name: 'main' \} \},}
\DoxyCodeLine{  'MarqueeRole' => Set \{ \{ name: 'marquee' \} \},}
\DoxyCodeLine{  'MathRole' => Set \{ \{ name: 'math' \} \},}
\DoxyCodeLine{  'MenuBarRole' => Set \{ \{ name: 'menubar' \} \},}
\DoxyCodeLine{  'MenuItemRole' => Set \{ \{ name: 'menuitem' \} \},}
\DoxyCodeLine{  'MenuItemCheckBoxRole' => Set \{ \{ name: 'menuitemcheckbox' \} \},}
\DoxyCodeLine{  'MenuItemRadioRole' => Set \{ \{ name: 'menuitemradio' \} \},}
\DoxyCodeLine{  'MenuRole' => Set \{ \{ name: 'menu' \} \},}
\DoxyCodeLine{  'NavigationRole' => Set \{ \{ name: 'navigation' \} \},}
\DoxyCodeLine{  'NoneRole' => Set \{ \{ name: 'none' \} \},}
\DoxyCodeLine{  'NoteRole' => Set \{ \{ name: 'note' \} \},}
\DoxyCodeLine{  'PresentationalRole' => Set \{ \{ name: 'presentation' \} \},}
\DoxyCodeLine{  'ProgressIndicatorRole' => Set \{ \{ name: 'progressbar' \} \},}
\DoxyCodeLine{  'RadioButtonRole' => Set \{ \{ name: 'radio' \} \},}
\DoxyCodeLine{  'RadioGroupRole' => Set \{ \{ name: 'radiogroup' \} \},}
\DoxyCodeLine{  'RegionRole' => Set \{ \{ name: 'region' \} \},}
\DoxyCodeLine{  'RowHeaderRole' => Set \{ \{ name: 'rowheader' \} \},}
\DoxyCodeLine{  'RowRole' => Set \{ \{ name: 'row' \} \},}
\DoxyCodeLine{  'ScrollBarRole' => Set \{ \{ name: 'scrollbar' \} \},}
\DoxyCodeLine{  'SearchRole' => Set \{ \{ name: 'search' \} \},}
\DoxyCodeLine{  'SearchBoxRole' => Set \{ \{ name: 'searchbox' \} \},}
\DoxyCodeLine{  'SliderRole' => Set \{ \{ name: 'slider' \} \},}
\DoxyCodeLine{  'SpinButtonRole' => Set \{ \{ name: 'spinbutton' \} \},}
\DoxyCodeLine{  'SplitterRole' => Set \{ \{ name: 'separator' \} \},}
\DoxyCodeLine{  'StatusRole' => Set \{ \{ name: 'status' \} \},}
\DoxyCodeLine{  'SwitchRole' => Set \{ \{ name: 'switch' \} \},}
\DoxyCodeLine{  'TabGroupRole' => Set \{ \{ name: 'tablist' \} \},}
\DoxyCodeLine{  'TabRole' => Set \{ \{ name: 'tab' \} \},}
\DoxyCodeLine{  'TableRole' => Set \{ \{ name: 'table' \} \},}
\DoxyCodeLine{  'TabListRole' => Set \{ \{ name: 'tablist' \} \},}
\DoxyCodeLine{  'TabPanelRole' => Set \{ \{ name: 'tabpanel' \} \},}
\DoxyCodeLine{  'TermRole' => Set \{ \{ name: 'term' \} \},}
\DoxyCodeLine{  'TextFieldRole' => Set \{ \{ name: 'textbox' \} \},}
\DoxyCodeLine{  'TimerRole' => Set \{ \{ name: 'timer' \} \},}
\DoxyCodeLine{  'ToggleButtonRole' => Set \{ \{ attributes: [Object] \} \},}
\DoxyCodeLine{  'ToolbarRole' => Set \{ \{ name: 'toolbar' \} \},}
\DoxyCodeLine{  'TreeRole' => Set \{ \{ name: 'tree' \} \},}
\DoxyCodeLine{  'TreeGridRole' => Set \{ \{ name: 'treegrid' \} \},}
\DoxyCodeLine{  'TreeItemRole' => Set \{ \{ name: 'treeitem' \} \},}
\DoxyCodeLine{  'UserInterfaceTooltipRole' => Set \{ \{ name: 'tooltip' \} \}}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_axobject_query_README_autotoc_md3636}{}\doxysubsubsection{Element to AXObject}\label{md_sfcode_node_modules_axobject_query_README_autotoc_md3636}

\begin{DoxyCode}{0}
\DoxyCodeLine{import \{ elementAXObjects \} from 'axobject-\/query'; }

\end{DoxyCode}


HTML elements are mapped to their related AXConcepts concepts.


\begin{DoxyCode}{0}
\DoxyCodeLine{Map \{}
\DoxyCodeLine{  \{ name: 'abbr' \} => Set \{ 'AbbrRole' \},}
\DoxyCodeLine{  \{ name: 'article' \} => Set \{ 'ArticleRole' \},}
\DoxyCodeLine{  \{ name: 'audio' \} => Set \{ 'AudioRole' \},}
\DoxyCodeLine{  \{ name: 'blockquote' \} => Set \{ 'BlockquoteRole' \},}
\DoxyCodeLine{  \{ name: 'button' \} => Set \{ 'ButtonRole' \},}
\DoxyCodeLine{  \{ name: 'canvas' \} => Set \{ 'CanvasRole' \},}
\DoxyCodeLine{  \{ name: 'caption' \} => Set \{ 'CaptionRole' \},}
\DoxyCodeLine{  \{ name: 'td' \} => Set \{ 'CellRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'CheckBoxRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'ColorWellRole' \},}
\DoxyCodeLine{  \{ name: 'th' \} => Set \{ 'ColumnHeaderRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'DateRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'DateTimeRole' \},}
\DoxyCodeLine{  \{ name: 'dfn' \} => Set \{ 'DefinitionRole' \},}
\DoxyCodeLine{  \{ name: 'dd' \} => Set \{ 'DescriptionListDetailRole' \},}
\DoxyCodeLine{  \{ name: 'dl' \} => Set \{ 'DescriptionListRole' \},}
\DoxyCodeLine{  \{ name: 'dt' \} => Set \{ 'DescriptionListTermRole' \},}
\DoxyCodeLine{  \{ name: 'details' \} => Set \{ 'DetailsRole' \},}
\DoxyCodeLine{  \{ name: 'dialog' \} => Set \{ 'DialogRole' \},}
\DoxyCodeLine{  \{ name: 'dir' \} => Set \{ 'DirectoryRole' \},}
\DoxyCodeLine{  \{ name: 'div' \} => Set \{ 'DivRole' \},}
\DoxyCodeLine{  \{ name: 'embed' \} => Set \{ 'EmbeddedObjectRole' \},}
\DoxyCodeLine{  \{ name: 'figcaption' \} => Set \{ 'FigcaptionRole' \},}
\DoxyCodeLine{  \{ name: 'figure' \} => Set \{ 'FigureRole' \},}
\DoxyCodeLine{  \{ name: 'footer' \} => Set \{ 'FooterRole' \},}
\DoxyCodeLine{  \{ name: 'form' \} => Set \{ 'FormRole' \},}
\DoxyCodeLine{  \{ name: 'h1' \} => Set \{ 'HeadingRole' \},}
\DoxyCodeLine{  \{ name: 'h2' \} => Set \{ 'HeadingRole' \},}
\DoxyCodeLine{  \{ name: 'h3' \} => Set \{ 'HeadingRole' \},}
\DoxyCodeLine{  \{ name: 'h4' \} => Set \{ 'HeadingRole' \},}
\DoxyCodeLine{  \{ name: 'h5' \} => Set \{ 'HeadingRole' \},}
\DoxyCodeLine{  \{ name: 'h6' \} => Set \{ 'HeadingRole' \},}
\DoxyCodeLine{  \{ name: 'iframe' \} => Set \{ 'IframeRole' \},}
\DoxyCodeLine{  \{ name: 'img', attributes: [ [Object] ] \} => Set \{ 'ImageMapRole' \},}
\DoxyCodeLine{  \{ name: 'img' \} => Set \{ 'ImageRole' \},}
\DoxyCodeLine{  \{ name: 'input' \} => Set \{ 'InlineTextBoxRole', 'TextFieldRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'InputTimeRole' \},}
\DoxyCodeLine{  \{ name: 'label' \} => Set \{ 'LabelRole' \},}
\DoxyCodeLine{  \{ name: 'legend' \} => Set \{ 'LegendRole' \},}
\DoxyCodeLine{  \{ name: 'br' \} => Set \{ 'LineBreakRole' \},}
\DoxyCodeLine{  \{ name: 'a', attributes: [ [Object] ] \} => Set \{ 'LinkRole' \},}
\DoxyCodeLine{  \{ name: 'option' \} => Set \{ 'ListBoxOptionRole' \},}
\DoxyCodeLine{  \{ name: 'li' \} => Set \{ 'ListItemRole' \},}
\DoxyCodeLine{  \{ name: 'ul' \} => Set \{ 'ListRole' \},}
\DoxyCodeLine{  \{ name: 'ol' \} => Set \{ 'ListRole' \},}
\DoxyCodeLine{  \{ name: 'main' \} => Set \{ 'MainRole' \},}
\DoxyCodeLine{  \{ name: 'mark' \} => Set \{ 'MarkRole' \},}
\DoxyCodeLine{  \{ name: 'marquee' \} => Set \{ 'MarqueeRole' \},}
\DoxyCodeLine{  \{ name: 'menuitem' \} => Set \{ 'MenuItemRole' \},}
\DoxyCodeLine{  \{ name: 'menu' \} => Set \{ 'MenuRole' \},}
\DoxyCodeLine{  \{ name: 'meter' \} => Set \{ 'MeterRole' \},}
\DoxyCodeLine{  \{ name: 'nav' \} => Set \{ 'NavigationRole' \},}
\DoxyCodeLine{  \{ name: 'p' \} => Set \{ 'ParagraphRole' \},}
\DoxyCodeLine{  \{ name: 'pre' \} => Set \{ 'PreRole' \},}
\DoxyCodeLine{  \{ name: 'progress' \} => Set \{ 'ProgressIndicatorRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'RadioButtonRole' \},}
\DoxyCodeLine{  \{ name: 'th', attributes: [ [Object] ] \} => Set \{ 'RowHeaderRole' \},}
\DoxyCodeLine{  \{ name: 'tr' \} => Set \{ 'RowRole' \},}
\DoxyCodeLine{  \{ name: 'ruby' \} => Set \{ 'RubyRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'SearchBoxRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'SliderRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'SpinButtonRole' \},}
\DoxyCodeLine{  \{ name: 'table' \} => Set \{ 'TableRole' \},}
\DoxyCodeLine{  \{ name: 'input' \} => Set \{ 'InlineTextBoxRole', 'TextFieldRole' \},}
\DoxyCodeLine{  \{ name: 'input', attributes: [ [Object] ] \} => Set \{ 'TextFieldRole' \},}
\DoxyCodeLine{  \{ name: 'time' \} => Set \{ 'TimeRole' \},}
\DoxyCodeLine{  \{ name: 'video' \} => Set \{ 'VideoRole' \}}
\DoxyCodeLine{\} }

\end{DoxyCode}
 