Programmatic access to information about the AXObject Model
Installations
npm install axobject-query
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 0.4
Node Version
22.4.1
NPM Version
10.8.1
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
A11yance
Download Statistics
Total Downloads
2,796,368,346
Last Day
1,252,276
Last Week
7,839,911
Last Month
63,753,623
Last Year
807,307,865
GitHub Statistics
31 Stars
183 Commits
10 Forks
6 Watching
13 Branches
12 Contributors
Bundle Size
40.34 kB
Minified
4.43 kB
Minified + Gzipped
Package Meta Information
Latest Version
4.1.0
Package Id
axobject-query@4.1.0
Unpacked Size
108.28 kB
Size
19.25 kB
File Count
134
NPM Version
10.8.1
Node Version
22.4.1
Publised On
15 Jul 2024
Total Downloads
Cumulative downloads
Total Downloads
2,796,368,346
Last day
-16.6%
1,252,276
Compared to previous day
Last week
-44.1%
7,839,911
Compared to previous week
Last month
-10.2%
63,753,623
Compared to previous month
Last year
21.6%
807,307,865
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
23
AXObject Query
Approximate model of the Chrome AXObject.
The project attempts to map the AXObject concepts to the 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.
CDN URL: https://unpkg.com/axobject-query
Utilities
AXObjects
1import { AXObjects } from 'axobject-query';
Interface
These methods are available on each export from the module. The typing here in the documentation is pseudo-typed. Each export will have its own specific types for each method signature.
1{| 2 entries: () => Array<$Item>, 3 get: (key: $Key) => ?$Value, 4 has: (key: $Key) => boolean, 5 keys: () => Array<$Key>, 6 values: () => Array<$Value>, 7|};
Concepts in the project
AXObjects are mapped to their HTML and ARIA concepts in the relatedConcepts
field.
The type
field is a loose association of an AXObject to the window
, structure
and widget
abstract roles in ARIA. The generic
value is given to DivRole
; 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 SpanRole
AXObject.
1[ 2 [ 'AbbrRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 3 [ 'AlertDialogRole', { relatedConcepts: [ [Object] ], type: 'window' } ], 4 [ 'AlertRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 5 [ 'AnnotationRole', { relatedConcepts: [], type: 'structure' } ], 6 [ 'ApplicationRole', { relatedConcepts: [ [Object] ], type: 'window' } ], 7 [ 'ArticleRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 8 [ 'AudioRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 9 [ 'BannerRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 10 [ 'BlockquoteRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 11 [ 'BusyIndicatorRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 12 [ 'ButtonRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 13 [ 'CanvasRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 14 [ 'CaptionRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 15 [ 'CellRole', { relatedConcepts: [ [Object], [Object], [Object] ], type: 'widget' } ], 16 [ 'CheckBoxRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 17 [ 'ColorWellRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 18 [ 'ColumnHeaderRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 19 [ 'ColumnRole', { relatedConcepts: [], type: 'structure' } ], 20 [ 'ComboBoxRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 21 [ 'ComplementaryRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 22 [ 'ContentInfoRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 23 [ 'DateRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 24 [ 'DateTimeRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 25 [ 'DefinitionRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 26 [ 'DescriptionListDetailRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 27 [ 'DescriptionListRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 28 [ 'DescriptionListTermRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 29 [ 'DetailsRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 30 [ 'DialogRole', { relatedConcepts: [ [Object], [Object] ], type: 'window' } ], 31 [ 'DirectoryRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 32 [ 'DisclosureTriangleRole', { relatedConcepts: [], type: 'widget' } ], 33 [ 'DivRole', { relatedConcepts: [ [Object] ], type: 'generic' } ], 34 [ 'DocumentRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 35 [ 'EmbeddedObjectRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 36 [ 'FeedRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 37 [ 'FigcaptionRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 38 [ 'FigureRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 39 [ 'FooterRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 40 [ 'FormRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 41 [ 'GridRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 42 [ 'GroupRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 43 [ 'HeadingRole', { relatedConcepts: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object] ], type: 'structure' } ], 44 [ 'IframePresentationalRole', { relatedConcepts: [], type: 'window' } ], 45 [ 'IframeRole', { relatedConcepts: [ [Object] ], type: 'window' } ], 46 [ 'IgnoredRole', { relatedConcepts: [], type: 'structure' } ], 47 [ 'ImageMapLinkRole', { relatedConcepts: [], type: 'widget' } ], 48 [ 'ImageMapRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 49 [ 'ImageRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 50 [ 'InlineTextBoxRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 51 [ 'InputTimeRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 52 [ 'LabelRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 53 [ 'LegendRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 54 [ 'LineBreakRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 55 [ 'LinkRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 56 [ 'ListBoxOptionRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 57 [ 'ListBoxRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 58 [ 'ListItemRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 59 [ 'ListMarkerRole', { relatedConcepts: [], type: 'structure' } ], 60 [ 'ListRole', { relatedConcepts: [ [Object], [Object], [Object] ], type: 'structure' } ], 61 [ 'LogRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 62 [ 'MainRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 63 [ 'MarkRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 64 [ 'MarqueeRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 65 [ 'MathRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 66 [ 'MenuBarRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 67 [ 'MenuButtonRole', { relatedConcepts: [], type: 'widget' } ], 68 [ 'MenuItemRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 69 [ 'MenuItemCheckBoxRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 70 [ 'MenuItemRadioRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 71 [ 'MenuListOptionRole', { relatedConcepts: [], type: 'widget' } ], 72 [ 'MenuListPopupRole', { relatedConcepts: [], type: 'widget' } ], 73 [ 'MenuRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 74 [ 'MeterRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 75 [ 'NavigationRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 76 [ 'NoneRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 77 [ 'NoteRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 78 [ 'OutlineRole', { relatedConcepts: [], type: 'structure' } ], 79 [ 'ParagraphRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 80 [ 'PopUpButtonRole', { relatedConcepts: [], type: 'widget' } ], 81 [ 'PreRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 82 [ 'PresentationalRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 83 [ 'ProgressIndicatorRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 84 [ 'RadioButtonRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 85 [ 'RadioGroupRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 86 [ 'RegionRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 87 [ 'RootWebAreaRole', { relatedConcepts: [], type: 'structure' } ], 88 [ 'RowHeaderRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 89 [ 'RowRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 90 [ 'RubyRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 91 [ 'RulerRole', { relatedConcepts: [], type: 'structure' } ], 92 [ 'ScrollAreaRole', { relatedConcepts: [], type: 'structure' } ], 93 [ 'ScrollBarRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 94 [ 'SeamlessWebAreaRole', { relatedConcepts: [], type: 'structure' } ], 95 [ 'SearchRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 96 [ 'SearchBoxRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 97 [ 'SliderRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 98 [ 'SliderThumbRole', { relatedConcepts: [], type: 'structure' } ], 99 [ 'SpinButtonRole', { relatedConcepts: [ [Object], [Object] ], type: 'widget' } ], 100 [ 'SpinButtonPartRole', { relatedConcepts: [], type: 'structure' } ], 101 [ 'SplitterRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 102 [ 'StaticTextRole', { relatedConcepts: [], type: 'structure' } ], 103 [ 'StatusRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 104 [ 'SVGRootRole', { relatedConcepts: [], type: 'structure' } ], 105 [ 'SwitchRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 106 [ 'TabGroupRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 107 [ 'TabRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 108 [ 'TableHeaderContainerRole', { relatedConcepts: [], type: 'structure' } ], 109 [ 'TableRole', { relatedConcepts: [ [Object], [Object] ], type: 'structure' } ], 110 [ 'TabListRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 111 [ 'TabPanelRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 112 [ 'TermRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 113 [ 'TextFieldRole', { relatedConcepts: [ [Object], [Object], [Object] ], type: 'widget' } ], 114 [ 'TimeRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 115 [ 'TimerRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 116 [ 'ToggleButtonRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 117 [ 'ToolbarRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 118 [ 'TreeRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 119 [ 'TreeGridRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 120 [ 'TreeItemRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 121 [ 'UserInterfaceTooltipRole', { relatedConcepts: [ [Object] ], type: 'structure' } ], 122 [ 'VideoRole', { relatedConcepts: [ [Object] ], type: 'widget' } ], 123 [ 'WebAreaRole', { relatedConcepts: [], type: 'structure' } ], 124 [ 'WindowRole', { relatedConcepts: [], type: 'window' } ], 125]
AXObject to Element
1import { AXObjectElements } from 'axobject-query';
AXObjects are mapped to their related HTML concepts, which may require attributes (in the case of inputs) to obtain the correct association.
1[ 2 [ 'AbbrRole', [ { name: 'abbr' } ] ], 3 [ 'ArticleRole', [ { name: 'article' } ] ], 4 [ 'AudioRole', [ { name: 'audio' } ] ], 5 [ 'BlockquoteRole', [ { name: 'blockquote' } ] ], 6 [ 'ButtonRole', [ { name: 'button' } ] ], 7 [ 'CanvasRole', [ { name: 'canvas' } ] ], 8 [ 'CaptionRole', [ { name: 'caption' } ] ], 9 [ 'CellRole', [ { name: 'td' } ] ], 10 [ 'CheckBoxRole', [ { name: 'input', attributes: [Object] } ] ], 11 [ 'ColorWellRole', [ { name: 'input', attributes: [Object] } ] ], 12 [ 'ColumnHeaderRole', [ { name: 'th' } ] ], 13 [ 'DateRole', [ { name: 'input', attributes: [Object] } ] ], 14 [ 'DateTimeRole', [ { name: 'input', attributes: [Object] } ] ], 15 [ 'DefinitionRole', [ { name: 'dfn' } ] ], 16 [ 'DescriptionListDetailRole', [ { name: 'dd' } ] ], 17 [ 'DescriptionListRole', [ { name: 'dl' } ] ], 18 [ 'DescriptionListTermRole', [ { name: 'dt' } ] ], 19 [ 'DetailsRole', [ { name: 'details' } ] ], 20 [ 'DialogRole', [ { name: 'dialog' } ] ], 21 [ 'DirectoryRole', [ { name: 'dir' } ] ], 22 [ 'DivRole', [ { name: 'div' } ] ], 23 [ 'EmbeddedObjectRole', [ { name: 'embed' } ] ], 24 [ 'FigcaptionRole', [ { name: 'figcaption' } ] ], 25 [ 'FigureRole', [ { name: 'figure' } ] ], 26 [ 'FooterRole', [ { name: 'footer' } ] ], 27 [ 'FormRole', [ { name: 'form' } ] ], 28 [ 'HeadingRole', [ { name: 'h1' }, { name: 'h2' }, { name: 'h3' }, { name: 'h4' }, { name: 'h5' }, { name: 'h6' } ] ], 29 [ 'IframeRole', [ { name: 'iframe' } ] ], 30 [ 'ImageMapRole', [ { name: 'img', attributes: [Object] } ] ], 31 [ 'ImageRole', [ { name: 'img' } ] ], 32 [ 'InlineTextBoxRole', [ { name: 'input' } ] ], 33 [ 'InputTimeRole', [ { name: 'input', attributes: [Object] } ] ], 34 [ 'LabelRole', [ { name: 'label' } ] ], 35 [ 'LegendRole', [ { name: 'legend' } ] ], 36 [ 'LineBreakRole', [ { name: 'br' } ] ], 37 [ 'LinkRole', [ { name: 'a', attributes: [Object] } ] ], 38 [ 'ListBoxOptionRole', [ { name: 'option' } ] ], 39 [ 'ListItemRole', [ { name: 'li' } ] ], 40 [ 'ListRole', [ { name: 'ul' }, { name: 'ol' } ] ], 41 [ 'MainRole', [ { name: 'main' } ] ], 42 [ 'MarkRole', [ { name: 'mark' } ] ], 43 [ 'MarqueeRole', [ { name: 'marquee' } ] ], 44 [ 'MenuItemRole', [ { name: 'menuitem' } ] ], 45 [ 'MenuRole', [ { name: 'menu' } ] ], 46 [ 'MeterRole', [ { name: 'meter' } ] ], 47 [ 'NavigationRole', [ { name: 'nav' } ] ], 48 [ 'ParagraphRole', [ { name: 'p' } ] ], 49 [ 'PreRole', [ { name: 'pre' } ] ], 50 [ 'ProgressIndicatorRole', [ { name: 'progress' } ] ], 51 [ 'RadioButtonRole', [ { name: 'input', attributes: [Object] } ] ], 52 [ 'RowHeaderRole', [ { name: 'th', attributes: [Object] } ] ], 53 [ 'RowRole', [ { name: 'tr' } ] ], 54 [ 'RubyRole', [ { name: 'ruby' } ] ], 55 [ 'SearchBoxRole', [ { name: 'input', attributes: [Object] } ] ], 56 [ 'SliderRole', [ { name: 'input', attributes: [Object] } ] ], 57 [ 'SpinButtonRole', [ { name: 'input', attributes: [Object] } ] ], 58 [ 'TableRole', [ { name: 'table' } ] ], 59 [ 'TextFieldRole', [ { name: 'input' }, { name: 'input', attributes: [Object] } ] ], 60 [ 'TimeRole', [ { name: 'time' } ] ], 61 [ 'VideoRole', [ { name: 'video' ] ], 62]
AXObject to Role
1import { AXObjectRoles } from 'axobject-query';
AXObjects are mapped to their related ARIA concepts..
1[ 2 [ 'AlertDialogRole', [ { name: 'alertdialog' } ] ], 3 [ 'AlertRole', [ { name: 'alert' } ] ], 4 [ 'ApplicationRole', [ { name: 'application' } ] ], 5 [ 'ArticleRole', [ { name: 'article' } ] ], 6 [ 'BannerRole', [ { name: 'banner' } ] ], 7 [ 'BusyIndicatorRole', [ { attributes: [Object] } ] ], 8 [ 'ButtonRole', [ { name: 'button' } ] ], 9 [ 'CellRole', [ { name: 'cell' }, { name: 'gridcell' } ] ], 10 [ 'CheckBoxRole', [ { name: 'checkbox' } ] ], 11 [ 'ColumnHeaderRole', [ { name: 'columnheader' } ] ], 12 [ 'ComboBoxRole', [ { name: 'combobox' } ] ], 13 [ 'ComplementaryRole', [ { name: 'complementary' } ] ], 14 [ 'ContentInfoRole', [ { name: 'structureinfo' } ] ], 15 [ 'DialogRole', [ { name: 'dialog' } ] ], 16 [ 'DirectoryRole', [ { name: 'directory' } ] ], 17 [ 'DocumentRole', [ { name: 'document' } ] ], 18 [ 'FeedRole', [ { name: 'feed' } ] ], 19 [ 'FigureRole', [ { name: 'figure' } ] ], 20 [ 'FormRole', [ { name: 'form' } ] ], 21 [ 'GridRole', [ { name: 'grid' } ] ], 22 [ 'GroupRole', [ { name: 'group' } ] ], 23 [ 'HeadingRole', [ { name: 'heading' } ] ], 24 [ 'ImageRole', [ { name: 'img' } ] ], 25 [ 'LinkRole', [ { name: 'link' } ] ], 26 [ 'ListBoxOptionRole', [ { name: 'option' } ] ], 27 [ 'ListBoxRole', [ { name: 'listbox' } ] ], 28 [ 'ListItemRole', [ { name: 'listitem' } ] ], 29 [ 'ListRole', [ { name: 'list' } ] ], 30 [ 'LogRole', [ { name: 'log' } ] ], 31 [ 'MainRole', [ { name: 'main' } ] ], 32 [ 'MarqueeRole', [ { name: 'marquee' } ] ], 33 [ 'MathRole', [ { name: 'math' } ] ], 34 [ 'MenuBarRole', [ { name: 'menubar' } ] ], 35 [ 'MenuItemRole', [ { name: 'menuitem' } ] ], 36 [ 'MenuItemCheckBoxRole', [ { name: 'menuitemcheckbox' } ] ], 37 [ 'MenuItemRadioRole', [ { name: 'menuitemradio' } ] ], 38 [ 'MenuRole', [ { name: 'menu' } ] ], 39 [ 'NavigationRole', [ { name: 'navigation' } ] ], 40 [ 'NoneRole', [ { name: 'none' } ] ], 41 [ 'NoteRole', [ { name: 'note' } ] ], 42 [ 'PresentationalRole', [ { name: 'presentation' } ] ], 43 [ 'ProgressIndicatorRole', [ { name: 'progressbar' } ] ], 44 [ 'RadioButtonRole', [ { name: 'radio' } ] ], 45 [ 'RadioGroupRole', [ { name: 'radiogroup' } ] ], 46 [ 'RegionRole', [ { name: 'region' } ] ], 47 [ 'RowHeaderRole', [ { name: 'rowheader' } ] ], 48 [ 'RowRole', [ { name: 'row' } ] ], 49 [ 'ScrollBarRole', [ { name: 'scrollbar' } ] ], 50 [ 'SearchRole', [ { name: 'search' } ] ], 51 [ 'SearchBoxRole', [ { name: 'searchbox' } ] ], 52 [ 'SliderRole', [ { name: 'slider' } ] ], 53 [ 'SpinButtonRole', [ { name: 'spinbutton' } ] ], 54 [ 'SplitterRole', [ { name: 'separator' } ] ], 55 [ 'StatusRole', [ { name: 'status' } ] ], 56 [ 'SwitchRole', [ { name: 'switch' } ] ], 57 [ 'TabGroupRole', [ { name: 'tablist' } ] ], 58 [ 'TabRole', [ { name: 'tab' } ] ], 59 [ 'TableRole', [ { name: 'table' } ] ], 60 [ 'TabListRole', [ { name: 'tablist' } ] ], 61 [ 'TabPanelRole', [ { name: 'tabpanel' } ] ], 62 [ 'TermRole', [ { name: 'term' } ] ], 63 [ 'TextFieldRole', [ { name: 'textbox' } ] ], 64 [ 'TimerRole', [ { name: 'timer' } ] ], 65 [ 'ToggleButtonRole', [ { attributes: [Object] } ] ], 66 [ 'ToolbarRole', [ { name: 'toolbar' } ] ], 67 [ 'TreeRole', [ { name: 'tree' } ] ], 68 [ 'TreeGridRole', [ { name: 'treegrid' } ] ], 69 [ 'TreeItemRole', [ { name: 'treeitem' } ] ], 70 [ 'UserInterfaceTooltipRole', [ { name: 'tooltip' } ] ], 71]
Element to AXObject
1import { elementAXObjects } from 'axobject-query';
HTML elements are mapped to their related AXConcepts concepts.
1[ 2 [ { name: 'abbr' }, [ 'AbbrRole' ] ], 3 [ { name: 'article' }, [ 'ArticleRole' ] ], 4 [ { name: 'audio' }, [ 'AudioRole' ] ], 5 [ { name: 'blockquote' }, [ 'BlockquoteRole' ] ], 6 [ { name: 'button' }, [ 'ButtonRole' ] ], 7 [ { name: 'canvas' }, [ 'CanvasRole' ] ], 8 [ { name: 'caption' }, [ 'CaptionRole' ] ], 9 [ { name: 'td' }, [ 'CellRole' ] ], 10 [ { name: 'input', attributes: [ [Object] ] }, [ 'CheckBoxRole' ] ], 11 [ { name: 'input', attributes: [ [Object] ] }, [ 'ColorWellRole' ] ], 12 [ { name: 'th' }, [ 'ColumnHeaderRole' ] ], 13 [ { name: 'input', attributes: [ [Object] ] }, [ 'DateRole' ] ], 14 [ { name: 'input', attributes: [ [Object] ] }, [ 'DateTimeRole' ] ], 15 [ { name: 'dfn' }, [ 'DefinitionRole' ] ], 16 [ { name: 'dd' }, [ 'DescriptionListDetailRole' ] ], 17 [ { name: 'dl' }, [ 'DescriptionListRole' ] ], 18 [ { name: 'dt' }, [ 'DescriptionListTermRole' ] ], 19 [ { name: 'details' }, [ 'DetailsRole' ] ], 20 [ { name: 'dialog' }, [ 'DialogRole' ] ], 21 [ { name: 'dir' }, [ 'DirectoryRole' ] ], 22 [ { name: 'div' }, [ 'DivRole' ] ], 23 [ { name: 'embed' }, [ 'EmbeddedObjectRole' ] ], 24 [ { name: 'figcaption' }, [ 'FigcaptionRole' ] ], 25 [ { name: 'figure' }, [ 'FigureRole' ] ], 26 [ { name: 'footer' }, [ 'FooterRole' ] ], 27 [ { name: 'form' }, [ 'FormRole' ] ], 28 [ { name: 'h1' }, [ 'HeadingRole' ] ], 29 [ { name: 'h2' }, [ 'HeadingRole' ] ], 30 [ { name: 'h3' }, [ 'HeadingRole' ] ], 31 [ { name: 'h4' }, [ 'HeadingRole' ] ], 32 [ { name: 'h5' }, [ 'HeadingRole' ] ], 33 [ { name: 'h6' }, [ 'HeadingRole' ] ], 34 [ { name: 'iframe' }, [ 'IframeRole' ] ], 35 [ { name: 'img', attributes: [ [Object] ] }, [ 'ImageMapRole' ] ], 36 [ { name: 'img' }, [ 'ImageRole' ] ], 37 [ { name: 'input' }, [ 'InlineTextBoxRole', 'TextFieldRole' ] ], 38 [ { name: 'input', attributes: [ [Object] ] }, [ 'InputTimeRole' ] ], 39 [ { name: 'label' }, [ 'LabelRole' ] ], 40 [ { name: 'legend' }, [ 'LegendRole' ] ], 41 [ { name: 'br' }, [ 'LineBreakRole' ] ], 42 [ { name: 'a', attributes: [ [Object] ] }, [ 'LinkRole' ] ], 43 [ { name: 'option' }, [ 'ListBoxOptionRole' ] ], 44 [ { name: 'li' }, [ 'ListItemRole' ] ], 45 [ { name: 'ul' }, [ 'ListRole' ] ], 46 [ { name: 'ol' }, [ 'ListRole' ] ], 47 [ { name: 'main' }, [ 'MainRole' ] ], 48 [ { name: 'mark' }, [ 'MarkRole' ] ], 49 [ { name: 'marquee' }, [ 'MarqueeRole' ] ], 50 [ { name: 'menuitem' }, [ 'MenuItemRole' ] ], 51 [ { name: 'menu' }, [ 'MenuRole' ] ], 52 [ { name: 'meter' }, [ 'MeterRole' ] ], 53 [ { name: 'nav' }, [ 'NavigationRole' ] ], 54 [ { name: 'p' }, [ 'ParagraphRole' ] ], 55 [ { name: 'pre' }, [ 'PreRole' ] ], 56 [ { name: 'progress' }, [ 'ProgressIndicatorRole' ] ], 57 [ { name: 'input', attributes: [ [Object] ] }, [ 'RadioButtonRole' ] ], 58 [ { name: 'th', attributes: [ [Object] ] }, [ 'RowHeaderRole' ] ], 59 [ { name: 'tr' }, [ 'RowRole' ] ], 60 [ { name: 'ruby' }, [ 'RubyRole' ] ], 61 [ { name: 'input', attributes: [ [Object] ] }, [ 'SearchBoxRole' ] ], 62 [ { name: 'input', attributes: [ [Object] ] }, [ 'SliderRole' ] ], 63 [ { name: 'input', attributes: [ [Object] ] }, [ 'SpinButtonRole' ] ], 64 [ { name: 'table' }, [ 'TableRole' ] ], 65 [ { name: 'input' }, [ 'InlineTextBoxRole', 'TextFieldRole' ] ], 66 [ { name: 'input', attributes: [ [Object] ] }, [ 'TextFieldRole' ] ], 67 [ { name: 'time' }, [ 'TimeRole' ] ], 68 [ { name: 'video' }, [ 'VideoRole' ] ], 69]
License
Copyright (c) 2021 A11yance
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: .github/SECURITY.md:1
- Info: Found linked content: .github/SECURITY.md:1
- Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy
- Info: Found text in security policy: .github/SECURITY.md:1
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/A11yance/axobject-query/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/A11yance/axobject-query/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/A11yance/axobject-query/test.yml/main?enable=pin
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 3 out of 3 third-party GitHubAction dependencies pinned
Reason
Found 3/16 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
- Info: no jobLevel write permissions found
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 20 are checked with a SAST tool
Score
5.1
/10
Last Scanned on 2024-12-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More