@marko/language-server 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +291 -389
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +235 -334
- package/dist/index.mjs.map +4 -4
- package/dist/service/html/axe-rules/axe-rules.d.ts +202 -222
- package/dist/service/html/axe-rules/rule-exceptions.d.ts +15 -0
- package/dist/ts-plugin/index.d.ts +1 -0
- package/dist/utils/project-defaults.d.ts +1 -0
- package/package.json +13 -13
- package/dist/service/html/axe-rules/separated-rules.d.ts +0 -48
|
@@ -1,541 +1,521 @@
|
|
|
1
1
|
export declare const keyboard: {
|
|
2
2
|
/**
|
|
3
3
|
* - Ensures every accesskey attribute value is unique
|
|
4
|
-
* - accesskey attribute value should be unique ([url](https://dequeuniversity.com/rules/axe/4.
|
|
4
|
+
* - accesskey attribute value should be unique ([url](https://dequeuniversity.com/rules/axe/4.7/accesskeys?application=axeAPI))
|
|
5
5
|
*/
|
|
6
|
-
accesskeys:
|
|
6
|
+
readonly accesskeys: "accesskeys";
|
|
7
7
|
/**
|
|
8
8
|
* - Ensures each page has at least one mechanism for a user to bypass navigation and jump straight to the content
|
|
9
|
-
* - Page must have means to bypass repeated blocks ([url](https://dequeuniversity.com/rules/axe/4.
|
|
9
|
+
* - Page must have means to bypass repeated blocks ([url](https://dequeuniversity.com/rules/axe/4.7/bypass?application=axeAPI))
|
|
10
10
|
*/
|
|
11
|
-
bypass:
|
|
11
|
+
readonly bypass: "bypass";
|
|
12
12
|
/**
|
|
13
13
|
* - Ensures elements in the focus order have a role appropriate for interactive content
|
|
14
|
-
* - Elements in the focus order should have an appropriate role ([url](https://dequeuniversity.com/rules/axe/4.
|
|
14
|
+
* - Elements in the focus order should have an appropriate role ([url](https://dequeuniversity.com/rules/axe/4.7/focus-order-semantics?application=axeAPI))
|
|
15
15
|
*/
|
|
16
|
-
focusOrderSemantics:
|
|
16
|
+
readonly focusOrderSemantics: "focus-order-semantics";
|
|
17
17
|
/**
|
|
18
18
|
* - Ensures `<frame>` and `<iframe>` elements with focusable content do not have tabindex=-1
|
|
19
|
-
* - Frames with focusable content must not have tabindex=-1 ([url](https://dequeuniversity.com/rules/axe/4.
|
|
19
|
+
* - Frames with focusable content must not have tabindex=-1 ([url](https://dequeuniversity.com/rules/axe/4.7/frame-focusable-content?application=axeAPI))
|
|
20
20
|
*/
|
|
21
|
-
frameFocusableContent:
|
|
21
|
+
readonly frameFocusableContent: "frame-focusable-content";
|
|
22
22
|
/**
|
|
23
23
|
* - Ensures interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies
|
|
24
|
-
* - Interactive controls must not be nested ([url](https://dequeuniversity.com/rules/axe/4.
|
|
24
|
+
* - Interactive controls must not be nested ([url](https://dequeuniversity.com/rules/axe/4.7/nested-interactive?application=axeAPI))
|
|
25
25
|
*/
|
|
26
|
-
nestedInteractive:
|
|
26
|
+
readonly nestedInteractive: "nested-interactive";
|
|
27
27
|
/**
|
|
28
28
|
* - Ensures all page content is contained by landmarks
|
|
29
|
-
* - All page content should be contained by landmarks ([url](https://dequeuniversity.com/rules/axe/4.
|
|
29
|
+
* - All page content should be contained by landmarks ([url](https://dequeuniversity.com/rules/axe/4.7/region?application=axeAPI))
|
|
30
30
|
*/
|
|
31
|
-
region:
|
|
31
|
+
readonly region: "region";
|
|
32
32
|
/**
|
|
33
33
|
* - Ensure elements that have scrollable content are accessible by keyboard
|
|
34
|
-
* - Scrollable region must have keyboard access ([url](https://dequeuniversity.com/rules/axe/4.
|
|
34
|
+
* - Scrollable region must have keyboard access ([url](https://dequeuniversity.com/rules/axe/4.7/scrollable-region-focusable?application=axeAPI))
|
|
35
35
|
*/
|
|
36
|
-
scrollableRegionFocusable:
|
|
36
|
+
readonly scrollableRegionFocusable: "scrollable-region-focusable";
|
|
37
37
|
/**
|
|
38
38
|
* - Ensure all skip links have a focusable target
|
|
39
|
-
* - The skip-link target should exist and be focusable ([url](https://dequeuniversity.com/rules/axe/4.
|
|
39
|
+
* - The skip-link target should exist and be focusable ([url](https://dequeuniversity.com/rules/axe/4.7/skip-link?application=axeAPI))
|
|
40
40
|
*/
|
|
41
|
-
skipLink:
|
|
41
|
+
readonly skipLink: "skip-link";
|
|
42
42
|
/**
|
|
43
43
|
* - Ensures tabindex attribute values are not greater than 0
|
|
44
|
-
* - Elements should not have tabindex greater than zero ([url](https://dequeuniversity.com/rules/axe/4.
|
|
44
|
+
* - Elements should not have tabindex greater than zero ([url](https://dequeuniversity.com/rules/axe/4.7/tabindex?application=axeAPI))
|
|
45
45
|
*/
|
|
46
|
-
tabindex:
|
|
46
|
+
readonly tabindex: "tabindex";
|
|
47
47
|
};
|
|
48
48
|
export declare const textAlternatives: {
|
|
49
49
|
/**
|
|
50
50
|
* - Ensures `<area>` elements of image maps have alternate text
|
|
51
|
-
* - Active `<area>` elements must have alternate text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
51
|
+
* - Active `<area>` elements must have alternate text ([url](https://dequeuniversity.com/rules/axe/4.7/area-alt?application=axeAPI))
|
|
52
52
|
*/
|
|
53
|
-
areaAlt:
|
|
53
|
+
readonly areaAlt: "area-alt";
|
|
54
54
|
/**
|
|
55
55
|
* - Ensures each HTML document contains a non-empty `<title>` element
|
|
56
|
-
* - Documents must have `<title>` element to aid in navigation ([url](https://dequeuniversity.com/rules/axe/4.
|
|
56
|
+
* - Documents must have `<title>` element to aid in navigation ([url](https://dequeuniversity.com/rules/axe/4.7/document-title?application=axeAPI))
|
|
57
57
|
*/
|
|
58
|
-
documentTitle:
|
|
58
|
+
readonly documentTitle: "document-title";
|
|
59
59
|
/**
|
|
60
60
|
* - Ensures `<iframe>` and `<frame>` elements contain a unique title attribute
|
|
61
|
-
* - Frames must have a unique title attribute ([url](https://dequeuniversity.com/rules/axe/4.
|
|
61
|
+
* - Frames must have a unique title attribute ([url](https://dequeuniversity.com/rules/axe/4.7/frame-title-unique?application=axeAPI))
|
|
62
62
|
*/
|
|
63
|
-
frameTitleUnique:
|
|
63
|
+
readonly frameTitleUnique: "frame-title-unique";
|
|
64
64
|
/**
|
|
65
65
|
* - Ensures `<iframe>` and `<frame>` elements have an accessible name
|
|
66
|
-
* - Frames must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
66
|
+
* - Frames must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/frame-title?application=axeAPI))
|
|
67
67
|
*/
|
|
68
|
-
frameTitle:
|
|
68
|
+
readonly frameTitle: "frame-title";
|
|
69
69
|
/**
|
|
70
70
|
* - Ensures `<img>` elements have alternate text or a role of none or presentation
|
|
71
|
-
* - Images must have alternate text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
71
|
+
* - Images must have alternate text ([url](https://dequeuniversity.com/rules/axe/4.7/image-alt?application=axeAPI))
|
|
72
72
|
*/
|
|
73
|
-
imageAlt:
|
|
73
|
+
readonly imageAlt: "image-alt";
|
|
74
74
|
/**
|
|
75
75
|
* - Ensure image alternative is not repeated as text
|
|
76
|
-
* - Alternative text of images should not be repeated as text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
76
|
+
* - Alternative text of images should not be repeated as text ([url](https://dequeuniversity.com/rules/axe/4.7/image-redundant-alt?application=axeAPI))
|
|
77
77
|
*/
|
|
78
|
-
imageRedundantAlt:
|
|
78
|
+
readonly imageRedundantAlt: "image-redundant-alt";
|
|
79
79
|
/**
|
|
80
80
|
* - Ensures `<input type="image">` elements have alternate text
|
|
81
|
-
* - Image buttons must have alternate text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
81
|
+
* - Image buttons must have alternate text ([url](https://dequeuniversity.com/rules/axe/4.7/input-image-alt?application=axeAPI))
|
|
82
82
|
*/
|
|
83
|
-
inputImageAlt:
|
|
83
|
+
readonly inputImageAlt: "input-image-alt";
|
|
84
84
|
/**
|
|
85
85
|
* - Ensures `<object>` elements have alternate text
|
|
86
|
-
* - `<object>` elements must have alternate text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
86
|
+
* - `<object>` elements must have alternate text ([url](https://dequeuniversity.com/rules/axe/4.7/object-alt?application=axeAPI))
|
|
87
87
|
*/
|
|
88
|
-
objectAlt:
|
|
88
|
+
readonly objectAlt: "object-alt";
|
|
89
89
|
/**
|
|
90
|
-
* - Ensures [role=
|
|
91
|
-
* - [role=
|
|
90
|
+
* - Ensures [role='img'] elements have alternate text
|
|
91
|
+
* - [role='img'] elements must have an alternative text ([url](https://dequeuniversity.com/rules/axe/4.7/role-img-alt?application=axeAPI))
|
|
92
92
|
*/
|
|
93
|
-
roleImgAlt:
|
|
93
|
+
readonly roleImgAlt: "role-img-alt";
|
|
94
94
|
/**
|
|
95
95
|
* - Ensures that server-side image maps are not used
|
|
96
|
-
* - Server-side image maps must not be used ([url](https://dequeuniversity.com/rules/axe/4.
|
|
96
|
+
* - Server-side image maps must not be used ([url](https://dequeuniversity.com/rules/axe/4.7/server-side-image-map?application=axeAPI))
|
|
97
97
|
*/
|
|
98
|
-
serverSideImageMap:
|
|
98
|
+
readonly serverSideImageMap: "server-side-image-map";
|
|
99
99
|
/**
|
|
100
100
|
* - Ensures `<svg>` elements with an img, graphics-document or graphics-symbol role have an accessible text
|
|
101
|
-
* - `<svg>` elements with an img role must have an alternative text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
101
|
+
* - `<svg>` elements with an img role must have an alternative text ([url](https://dequeuniversity.com/rules/axe/4.7/svg-img-alt?application=axeAPI))
|
|
102
102
|
*/
|
|
103
|
-
svgImgAlt:
|
|
103
|
+
readonly svgImgAlt: "svg-img-alt";
|
|
104
104
|
/**
|
|
105
105
|
* - Ensures `<video>` elements have captions
|
|
106
|
-
* - `<video>` elements must have captions ([url](https://dequeuniversity.com/rules/axe/4.
|
|
106
|
+
* - `<video>` elements must have captions ([url](https://dequeuniversity.com/rules/axe/4.7/video-caption?application=axeAPI))
|
|
107
107
|
*/
|
|
108
|
-
videoCaption:
|
|
108
|
+
readonly videoCaption: "video-caption";
|
|
109
109
|
};
|
|
110
110
|
export declare const aria: {
|
|
111
111
|
/**
|
|
112
|
-
* - Ensures an element's role
|
|
113
|
-
* - Elements must only use
|
|
112
|
+
* - Ensures ARIA attributes are allowed for an element's role
|
|
113
|
+
* - Elements must only use allowed ARIA attributes ([url](https://dequeuniversity.com/rules/axe/4.7/aria-allowed-attr?application=axeAPI))
|
|
114
114
|
*/
|
|
115
|
-
ariaAllowedAttr:
|
|
115
|
+
readonly ariaAllowedAttr: "aria-allowed-attr";
|
|
116
116
|
/**
|
|
117
117
|
* - Ensures role attribute has an appropriate value for the element
|
|
118
|
-
* - ARIA role should be appropriate for the element ([url](https://dequeuniversity.com/rules/axe/4.
|
|
118
|
+
* - ARIA role should be appropriate for the element ([url](https://dequeuniversity.com/rules/axe/4.7/aria-allowed-role?application=axeAPI))
|
|
119
119
|
*/
|
|
120
|
-
ariaAllowedRole:
|
|
121
|
-
/**
|
|
122
|
-
* - Ensure aria-braillelabel and aria-brailleroledescription have a non-braille equivalent
|
|
123
|
-
* - aria-braille attributes must have a non-braille equivalent ([url](https://dequeuniversity.com/rules/axe/4.8/aria-braille-equivalent?application=axeAPI))
|
|
124
|
-
*/
|
|
125
|
-
ariaBrailleEquivalent: string;
|
|
120
|
+
readonly ariaAllowedRole: "aria-allowed-role";
|
|
126
121
|
/**
|
|
127
122
|
* - Ensures every ARIA button, link and menuitem has an accessible name
|
|
128
|
-
* - ARIA commands must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
129
|
-
*/
|
|
130
|
-
ariaCommandName: string;
|
|
131
|
-
/**
|
|
132
|
-
* - Ensures ARIA attributes are used as described in the specification of the element's role
|
|
133
|
-
* - ARIA attributes must be used as specified for the element's role ([url](https://dequeuniversity.com/rules/axe/4.8/aria-conditional-attr?application=axeAPI))
|
|
123
|
+
* - ARIA commands must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/aria-command-name?application=axeAPI))
|
|
134
124
|
*/
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* - Ensures elements do not use deprecated roles
|
|
138
|
-
* - Deprecated ARIA roles must not be used ([url](https://dequeuniversity.com/rules/axe/4.8/aria-deprecated-role?application=axeAPI))
|
|
139
|
-
*/
|
|
140
|
-
ariaDeprecatedRole: string;
|
|
125
|
+
readonly ariaCommandName: "aria-command-name";
|
|
141
126
|
/**
|
|
142
127
|
* - Ensures every ARIA dialog and alertdialog node has an accessible name
|
|
143
|
-
* - ARIA dialog and alertdialog nodes should have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
128
|
+
* - ARIA dialog and alertdialog nodes should have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/aria-dialog-name?application=axeAPI))
|
|
144
129
|
*/
|
|
145
|
-
ariaDialogName:
|
|
130
|
+
readonly ariaDialogName: "aria-dialog-name";
|
|
146
131
|
/**
|
|
147
|
-
* - Ensures aria-hidden=
|
|
148
|
-
* - aria-hidden=
|
|
132
|
+
* - Ensures aria-hidden='true' is not present on the document body.
|
|
133
|
+
* - aria-hidden='true' must not be present on the document body ([url](https://dequeuniversity.com/rules/axe/4.7/aria-hidden-body?application=axeAPI))
|
|
149
134
|
*/
|
|
150
|
-
ariaHiddenBody:
|
|
135
|
+
readonly ariaHiddenBody: "aria-hidden-body";
|
|
151
136
|
/**
|
|
152
137
|
* - Ensures every ARIA input field has an accessible name
|
|
153
|
-
* - ARIA input fields must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
138
|
+
* - ARIA input fields must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/aria-input-field-name?application=axeAPI))
|
|
154
139
|
*/
|
|
155
|
-
ariaInputFieldName:
|
|
140
|
+
readonly ariaInputFieldName: "aria-input-field-name";
|
|
156
141
|
/**
|
|
157
142
|
* - Ensures every ARIA meter node has an accessible name
|
|
158
|
-
* - ARIA meter nodes must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
143
|
+
* - ARIA meter nodes must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/aria-meter-name?application=axeAPI))
|
|
159
144
|
*/
|
|
160
|
-
ariaMeterName:
|
|
145
|
+
readonly ariaMeterName: "aria-meter-name";
|
|
161
146
|
/**
|
|
162
147
|
* - Ensures every ARIA progressbar node has an accessible name
|
|
163
|
-
* - ARIA progressbar nodes must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
164
|
-
*/
|
|
165
|
-
ariaProgressbarName: string;
|
|
166
|
-
/**
|
|
167
|
-
* - Ensures ARIA attributes are not prohibited for an element's role
|
|
168
|
-
* - Elements must only use permitted ARIA attributes ([url](https://dequeuniversity.com/rules/axe/4.8/aria-prohibited-attr?application=axeAPI))
|
|
148
|
+
* - ARIA progressbar nodes must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/aria-progressbar-name?application=axeAPI))
|
|
169
149
|
*/
|
|
170
|
-
|
|
150
|
+
readonly ariaProgressbarName: "aria-progressbar-name";
|
|
171
151
|
/**
|
|
172
152
|
* - Ensures elements with ARIA roles have all required ARIA attributes
|
|
173
|
-
* - Required ARIA attributes must be provided ([url](https://dequeuniversity.com/rules/axe/4.
|
|
153
|
+
* - Required ARIA attributes must be provided ([url](https://dequeuniversity.com/rules/axe/4.7/aria-required-attr?application=axeAPI))
|
|
174
154
|
*/
|
|
175
|
-
ariaRequiredAttr:
|
|
155
|
+
readonly ariaRequiredAttr: "aria-required-attr";
|
|
176
156
|
/**
|
|
177
157
|
* - Ensures elements with an ARIA role that require child roles contain them
|
|
178
|
-
* - Certain ARIA roles must contain particular children ([url](https://dequeuniversity.com/rules/axe/4.
|
|
158
|
+
* - Certain ARIA roles must contain particular children ([url](https://dequeuniversity.com/rules/axe/4.7/aria-required-children?application=axeAPI))
|
|
179
159
|
*/
|
|
180
|
-
ariaRequiredChildren:
|
|
160
|
+
readonly ariaRequiredChildren: "aria-required-children";
|
|
181
161
|
/**
|
|
182
162
|
* - Ensures elements with an ARIA role that require parent roles are contained by them
|
|
183
|
-
* - Certain ARIA roles must be contained by particular parents ([url](https://dequeuniversity.com/rules/axe/4.
|
|
163
|
+
* - Certain ARIA roles must be contained by particular parents ([url](https://dequeuniversity.com/rules/axe/4.7/aria-required-parent?application=axeAPI))
|
|
184
164
|
*/
|
|
185
|
-
ariaRequiredParent:
|
|
165
|
+
readonly ariaRequiredParent: "aria-required-parent";
|
|
186
166
|
/**
|
|
187
167
|
* - Ensure aria-roledescription is only used on elements with an implicit or explicit role
|
|
188
|
-
* - aria-roledescription must be on elements with a semantic role ([url](https://dequeuniversity.com/rules/axe/4.
|
|
168
|
+
* - aria-roledescription must be on elements with a semantic role ([url](https://dequeuniversity.com/rules/axe/4.7/aria-roledescription?application=axeAPI))
|
|
189
169
|
*/
|
|
190
|
-
ariaRoledescription:
|
|
170
|
+
readonly ariaRoledescription: "aria-roledescription";
|
|
191
171
|
/**
|
|
192
172
|
* - Ensures all elements with a role attribute use a valid value
|
|
193
|
-
* - ARIA roles used must conform to valid values ([url](https://dequeuniversity.com/rules/axe/4.
|
|
173
|
+
* - ARIA roles used must conform to valid values ([url](https://dequeuniversity.com/rules/axe/4.7/aria-roles?application=axeAPI))
|
|
194
174
|
*/
|
|
195
|
-
ariaRoles:
|
|
175
|
+
readonly ariaRoles: "aria-roles";
|
|
196
176
|
/**
|
|
197
|
-
* - Ensures role=
|
|
198
|
-
* - "role=text" should have no focusable descendants ([url](https://dequeuniversity.com/rules/axe/4.
|
|
177
|
+
* - Ensures "role=text" is used on elements with no focusable descendants
|
|
178
|
+
* - "role=text" should have no focusable descendants ([url](https://dequeuniversity.com/rules/axe/4.7/aria-text?application=axeAPI))
|
|
199
179
|
*/
|
|
200
|
-
ariaText:
|
|
180
|
+
readonly ariaText: "aria-text";
|
|
201
181
|
/**
|
|
202
182
|
* - Ensures every ARIA toggle field has an accessible name
|
|
203
|
-
* - ARIA toggle fields must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
183
|
+
* - ARIA toggle fields must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/aria-toggle-field-name?application=axeAPI))
|
|
204
184
|
*/
|
|
205
|
-
ariaToggleFieldName:
|
|
185
|
+
readonly ariaToggleFieldName: "aria-toggle-field-name";
|
|
206
186
|
/**
|
|
207
187
|
* - Ensures every ARIA tooltip node has an accessible name
|
|
208
|
-
* - ARIA tooltip nodes must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
188
|
+
* - ARIA tooltip nodes must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/aria-tooltip-name?application=axeAPI))
|
|
209
189
|
*/
|
|
210
|
-
ariaTooltipName:
|
|
190
|
+
readonly ariaTooltipName: "aria-tooltip-name";
|
|
211
191
|
/**
|
|
212
192
|
* - Ensures every ARIA treeitem node has an accessible name
|
|
213
|
-
* - ARIA treeitem nodes should have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
193
|
+
* - ARIA treeitem nodes should have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/aria-treeitem-name?application=axeAPI))
|
|
214
194
|
*/
|
|
215
|
-
ariaTreeitemName:
|
|
195
|
+
readonly ariaTreeitemName: "aria-treeitem-name";
|
|
216
196
|
/**
|
|
217
197
|
* - Ensures all ARIA attributes have valid values
|
|
218
|
-
* - ARIA attributes must conform to valid values ([url](https://dequeuniversity.com/rules/axe/4.
|
|
198
|
+
* - ARIA attributes must conform to valid values ([url](https://dequeuniversity.com/rules/axe/4.7/aria-valid-attr-value?application=axeAPI))
|
|
219
199
|
*/
|
|
220
|
-
ariaValidAttrValue:
|
|
200
|
+
readonly ariaValidAttrValue: "aria-valid-attr-value";
|
|
221
201
|
/**
|
|
222
202
|
* - Ensures attributes that begin with aria- are valid ARIA attributes
|
|
223
|
-
* - ARIA attributes must conform to valid names ([url](https://dequeuniversity.com/rules/axe/4.
|
|
203
|
+
* - ARIA attributes must conform to valid names ([url](https://dequeuniversity.com/rules/axe/4.7/aria-valid-attr?application=axeAPI))
|
|
224
204
|
*/
|
|
225
|
-
ariaValidAttr:
|
|
205
|
+
readonly ariaValidAttr: "aria-valid-attr";
|
|
226
206
|
/**
|
|
227
207
|
* - Elements marked as presentational should not have global ARIA or tabindex to ensure all screen readers ignore them
|
|
228
|
-
* - Ensure elements marked as presentational are consistently ignored ([url](https://dequeuniversity.com/rules/axe/4.
|
|
208
|
+
* - Ensure elements marked as presentational are consistently ignored ([url](https://dequeuniversity.com/rules/axe/4.7/presentation-role-conflict?application=axeAPI))
|
|
229
209
|
*/
|
|
230
|
-
presentationRoleConflict:
|
|
210
|
+
readonly presentationRoleConflict: "presentation-role-conflict";
|
|
231
211
|
};
|
|
232
212
|
export declare const nameRoleValue: {
|
|
233
213
|
/**
|
|
234
214
|
* - Ensures aria-hidden elements are not focusable nor contain focusable elements
|
|
235
|
-
* - ARIA hidden element must not be focusable or contain focusable elements ([url](https://dequeuniversity.com/rules/axe/4.
|
|
215
|
+
* - ARIA hidden element must not be focusable or contain focusable elements ([url](https://dequeuniversity.com/rules/axe/4.7/aria-hidden-focus?application=axeAPI))
|
|
236
216
|
*/
|
|
237
|
-
ariaHiddenFocus:
|
|
217
|
+
readonly ariaHiddenFocus: "aria-hidden-focus";
|
|
238
218
|
/**
|
|
239
219
|
* - Ensures buttons have discernible text
|
|
240
|
-
* - Buttons must have discernible text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
220
|
+
* - Buttons must have discernible text ([url](https://dequeuniversity.com/rules/axe/4.7/button-name?application=axeAPI))
|
|
241
221
|
*/
|
|
242
|
-
buttonName:
|
|
222
|
+
readonly buttonName: "button-name";
|
|
243
223
|
/**
|
|
244
224
|
* - Ensures headings have discernible text
|
|
245
|
-
* - Headings should not be empty ([url](https://dequeuniversity.com/rules/axe/4.
|
|
225
|
+
* - Headings should not be empty ([url](https://dequeuniversity.com/rules/axe/4.7/empty-heading?application=axeAPI))
|
|
246
226
|
*/
|
|
247
|
-
emptyHeading:
|
|
227
|
+
readonly emptyHeading: "empty-heading";
|
|
248
228
|
/**
|
|
249
229
|
* - Ensures table headers have discernible text
|
|
250
|
-
* - Table header text should not be empty ([url](https://dequeuniversity.com/rules/axe/4.
|
|
230
|
+
* - Table header text should not be empty ([url](https://dequeuniversity.com/rules/axe/4.7/empty-table-header?application=axeAPI))
|
|
251
231
|
*/
|
|
252
|
-
emptyTableHeader:
|
|
232
|
+
readonly emptyTableHeader: "empty-table-header";
|
|
253
233
|
/**
|
|
254
234
|
* - Ensures input buttons have discernible text
|
|
255
|
-
* - Input buttons must have discernible text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
235
|
+
* - Input buttons must have discernible text ([url](https://dequeuniversity.com/rules/axe/4.7/input-button-name?application=axeAPI))
|
|
256
236
|
*/
|
|
257
|
-
inputButtonName:
|
|
237
|
+
readonly inputButtonName: "input-button-name";
|
|
258
238
|
/**
|
|
259
239
|
* - Ensures links have discernible text
|
|
260
|
-
* - Links must have discernible text ([url](https://dequeuniversity.com/rules/axe/4.
|
|
240
|
+
* - Links must have discernible text ([url](https://dequeuniversity.com/rules/axe/4.7/link-name?application=axeAPI))
|
|
261
241
|
*/
|
|
262
|
-
linkName:
|
|
242
|
+
readonly linkName: "link-name";
|
|
263
243
|
};
|
|
264
244
|
export declare const timeAndMedia: {
|
|
265
245
|
/**
|
|
266
246
|
* - Ensures `<audio>` elements have captions
|
|
267
|
-
* - `<audio>` elements must have a captions track ([url](https://dequeuniversity.com/rules/axe/4.
|
|
247
|
+
* - `<audio>` elements must have a captions track ([url](https://dequeuniversity.com/rules/axe/4.7/audio-caption?application=axeAPI))
|
|
268
248
|
*/
|
|
269
|
-
audioCaption:
|
|
249
|
+
readonly audioCaption: "audio-caption";
|
|
270
250
|
/**
|
|
271
251
|
* - Ensures `<blink>` elements are not used
|
|
272
|
-
* - `<blink>` elements are deprecated and must not be used ([url](https://dequeuniversity.com/rules/axe/4.
|
|
252
|
+
* - `<blink>` elements are deprecated and must not be used ([url](https://dequeuniversity.com/rules/axe/4.7/blink?application=axeAPI))
|
|
273
253
|
*/
|
|
274
|
-
blink:
|
|
254
|
+
readonly blink: "blink";
|
|
275
255
|
/**
|
|
276
256
|
* - Ensures `<meta http-equiv="refresh">` is not used for delayed refresh
|
|
277
|
-
* - Delayed refresh must not be used ([url](https://dequeuniversity.com/rules/axe/4.
|
|
257
|
+
* - Delayed refresh must not be used ([url](https://dequeuniversity.com/rules/axe/4.7/meta-refresh-no-exceptions?application=axeAPI))
|
|
278
258
|
*/
|
|
279
|
-
metaRefreshNoExceptions:
|
|
259
|
+
readonly metaRefreshNoExceptions: "meta-refresh-no-exceptions";
|
|
280
260
|
/**
|
|
281
261
|
* - Ensures `<meta http-equiv="refresh">` is not used for delayed refresh
|
|
282
|
-
* - Delayed refresh under 20 hours must not be used ([url](https://dequeuniversity.com/rules/axe/4.
|
|
262
|
+
* - Delayed refresh under 20 hours must not be used ([url](https://dequeuniversity.com/rules/axe/4.7/meta-refresh?application=axeAPI))
|
|
283
263
|
*/
|
|
284
|
-
metaRefresh:
|
|
264
|
+
readonly metaRefresh: "meta-refresh";
|
|
285
265
|
/**
|
|
286
266
|
* - Ensures `<video>` or `<audio>` elements do not autoplay audio for more than 3 seconds without a control mechanism to stop or mute the audio
|
|
287
|
-
* - `<video>` or `<audio>` elements must not play automatically ([url](https://dequeuniversity.com/rules/axe/4.
|
|
267
|
+
* - `<video>` or `<audio>` elements must not play automatically ([url](https://dequeuniversity.com/rules/axe/4.7/no-autoplay-audio?application=axeAPI))
|
|
288
268
|
*/
|
|
289
|
-
noAutoplayAudio:
|
|
269
|
+
readonly noAutoplayAudio: "no-autoplay-audio";
|
|
290
270
|
};
|
|
291
271
|
export declare const forms: {
|
|
292
272
|
/**
|
|
293
273
|
* - Ensure the autocomplete attribute is correct and suitable for the form field
|
|
294
|
-
* - autocomplete attribute must be used correctly ([url](https://dequeuniversity.com/rules/axe/4.
|
|
274
|
+
* - autocomplete attribute must be used correctly ([url](https://dequeuniversity.com/rules/axe/4.7/autocomplete-valid?application=axeAPI))
|
|
295
275
|
*/
|
|
296
|
-
autocompleteValid:
|
|
276
|
+
readonly autocompleteValid: "autocomplete-valid";
|
|
297
277
|
/**
|
|
298
278
|
* - Ensures form field does not have multiple label elements
|
|
299
|
-
* - Form field must not have multiple label elements ([url](https://dequeuniversity.com/rules/axe/4.
|
|
279
|
+
* - Form field must not have multiple label elements ([url](https://dequeuniversity.com/rules/axe/4.7/form-field-multiple-labels?application=axeAPI))
|
|
300
280
|
*/
|
|
301
|
-
formFieldMultipleLabels:
|
|
281
|
+
readonly formFieldMultipleLabels: "form-field-multiple-labels";
|
|
302
282
|
/**
|
|
303
283
|
* - Ensures that every form element has a visible label and is not solely labeled using hidden labels, or the title or aria-describedby attributes
|
|
304
|
-
* - Form elements should have a visible label ([url](https://dequeuniversity.com/rules/axe/4.
|
|
284
|
+
* - Form elements should have a visible label ([url](https://dequeuniversity.com/rules/axe/4.7/label-title-only?application=axeAPI))
|
|
305
285
|
*/
|
|
306
|
-
labelTitleOnly:
|
|
286
|
+
readonly labelTitleOnly: "label-title-only";
|
|
307
287
|
/**
|
|
308
288
|
* - Ensures every form element has a label
|
|
309
|
-
* - Form elements must have labels ([url](https://dequeuniversity.com/rules/axe/4.
|
|
289
|
+
* - Form elements must have labels ([url](https://dequeuniversity.com/rules/axe/4.7/label?application=axeAPI))
|
|
310
290
|
*/
|
|
311
|
-
label:
|
|
291
|
+
readonly label: "label";
|
|
312
292
|
/**
|
|
313
293
|
* - Ensures select element has an accessible name
|
|
314
|
-
* - Select element must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
294
|
+
* - Select element must have an accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/select-name?application=axeAPI))
|
|
315
295
|
*/
|
|
316
|
-
selectName:
|
|
296
|
+
readonly selectName: "select-name";
|
|
317
297
|
};
|
|
318
298
|
export declare const structure: {
|
|
319
299
|
/**
|
|
320
300
|
* - Ensure that text spacing set through style attributes can be adjusted with custom stylesheets
|
|
321
|
-
* - Inline text spacing must be adjustable with custom stylesheets ([url](https://dequeuniversity.com/rules/axe/4.
|
|
301
|
+
* - Inline text spacing must be adjustable with custom stylesheets ([url](https://dequeuniversity.com/rules/axe/4.7/avoid-inline-spacing?application=axeAPI))
|
|
322
302
|
*/
|
|
323
|
-
avoidInlineSpacing:
|
|
303
|
+
readonly avoidInlineSpacing: "avoid-inline-spacing";
|
|
324
304
|
/**
|
|
325
305
|
* - Ensures content is not locked to any specific display orientation, and the content is operable in all display orientations
|
|
326
|
-
* - CSS Media queries must not lock display orientation ([url](https://dequeuniversity.com/rules/axe/4.
|
|
306
|
+
* - CSS Media queries must not lock display orientation ([url](https://dequeuniversity.com/rules/axe/4.7/css-orientation-lock?application=axeAPI))
|
|
327
307
|
*/
|
|
328
|
-
cssOrientationLock:
|
|
308
|
+
readonly cssOrientationLock: "css-orientation-lock";
|
|
329
309
|
/**
|
|
330
310
|
* - Ensures `<dl>` elements are structured correctly
|
|
331
|
-
* - `<dl>` elements must only directly contain properly-ordered `<dt>` and `<dd>` groups, `<script>`, `<template>` or `<div>` elements ([url](https://dequeuniversity.com/rules/axe/4.
|
|
311
|
+
* - `<dl>` elements must only directly contain properly-ordered `<dt>` and `<dd>` groups, `<script>`, `<template>` or `<div>` elements ([url](https://dequeuniversity.com/rules/axe/4.7/definition-list?application=axeAPI))
|
|
332
312
|
*/
|
|
333
|
-
definitionList:
|
|
313
|
+
readonly definitionList: "definition-list";
|
|
334
314
|
/**
|
|
335
315
|
* - Ensures `<dt>` and `<dd>` elements are contained by a `<dl>`
|
|
336
|
-
* - `<dt>` and `<dd>` elements must be contained by a `<dl>` ([url](https://dequeuniversity.com/rules/axe/4.
|
|
316
|
+
* - `<dt>` and `<dd>` elements must be contained by a `<dl>` ([url](https://dequeuniversity.com/rules/axe/4.7/dlitem?application=axeAPI))
|
|
337
317
|
*/
|
|
338
|
-
dlitem:
|
|
318
|
+
readonly dlitem: "dlitem";
|
|
339
319
|
/**
|
|
340
320
|
* - Ensures `<iframe>` and `<frame>` elements contain the axe-core script
|
|
341
|
-
* - Frames should be tested with axe-core ([url](https://dequeuniversity.com/rules/axe/4.
|
|
321
|
+
* - Frames should be tested with axe-core ([url](https://dequeuniversity.com/rules/axe/4.7/frame-tested?application=axeAPI))
|
|
342
322
|
*/
|
|
343
|
-
frameTested:
|
|
323
|
+
readonly frameTested: "frame-tested";
|
|
344
324
|
/**
|
|
345
325
|
* - Informs users about hidden content.
|
|
346
|
-
* - Hidden content on the page should be analyzed ([url](https://dequeuniversity.com/rules/axe/4.
|
|
326
|
+
* - Hidden content on the page should be analyzed ([url](https://dequeuniversity.com/rules/axe/4.7/hidden-content?application=axeAPI))
|
|
347
327
|
*/
|
|
348
|
-
hiddenContent:
|
|
328
|
+
readonly hiddenContent: "hidden-content";
|
|
349
329
|
/**
|
|
350
330
|
* - Ensures that lists are structured correctly
|
|
351
|
-
* - `<ul>` and `<ol>` must only directly contain `<li>`, `<script>` or `<template>` elements ([url](https://dequeuniversity.com/rules/axe/4.
|
|
331
|
+
* - `<ul>` and `<ol>` must only directly contain `<li>`, `<script>` or `<template>` elements ([url](https://dequeuniversity.com/rules/axe/4.7/list?application=axeAPI))
|
|
352
332
|
*/
|
|
353
|
-
list:
|
|
333
|
+
readonly list: "list";
|
|
354
334
|
/**
|
|
355
335
|
* - Ensures `<li>` elements are used semantically
|
|
356
|
-
* - `<li>` elements must be contained in a `<ul>` or `<ol>` ([url](https://dequeuniversity.com/rules/axe/4.
|
|
336
|
+
* - `<li>` elements must be contained in a `<ul>` or `<ol>` ([url](https://dequeuniversity.com/rules/axe/4.7/listitem?application=axeAPI))
|
|
357
337
|
*/
|
|
358
|
-
listitem:
|
|
338
|
+
readonly listitem: "listitem";
|
|
359
339
|
};
|
|
360
340
|
export declare const color: {
|
|
361
341
|
/**
|
|
362
342
|
* - Ensures the contrast between foreground and background colors meets WCAG 2 AAA enhanced contrast ratio thresholds
|
|
363
|
-
* - Elements must meet enhanced color contrast ratio thresholds ([url](https://dequeuniversity.com/rules/axe/4.
|
|
343
|
+
* - Elements must meet enhanced color contrast ratio thresholds ([url](https://dequeuniversity.com/rules/axe/4.7/color-contrast-enhanced?application=axeAPI))
|
|
364
344
|
*/
|
|
365
|
-
colorContrastEnhanced:
|
|
345
|
+
readonly colorContrastEnhanced: "color-contrast-enhanced";
|
|
366
346
|
/**
|
|
367
347
|
* - Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
|
|
368
|
-
* - Elements must meet minimum color contrast ratio thresholds ([url](https://dequeuniversity.com/rules/axe/4.
|
|
348
|
+
* - Elements must meet minimum color contrast ratio thresholds ([url](https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=axeAPI))
|
|
369
349
|
*/
|
|
370
|
-
colorContrast:
|
|
350
|
+
readonly colorContrast: "color-contrast";
|
|
371
351
|
/**
|
|
372
352
|
* - Ensure links are distinguished from surrounding text in a way that does not rely on color
|
|
373
|
-
* - Links must be distinguishable without relying on color ([url](https://dequeuniversity.com/rules/axe/4.
|
|
353
|
+
* - Links must be distinguishable without relying on color ([url](https://dequeuniversity.com/rules/axe/4.7/link-in-text-block?application=axeAPI))
|
|
374
354
|
*/
|
|
375
|
-
linkInTextBlock:
|
|
355
|
+
readonly linkInTextBlock: "link-in-text-block";
|
|
376
356
|
};
|
|
377
357
|
export declare const parsing: {
|
|
378
358
|
/**
|
|
379
359
|
* - Ensures every id attribute value of active elements is unique
|
|
380
|
-
* - IDs of active elements must be unique ([url](https://dequeuniversity.com/rules/axe/4.
|
|
360
|
+
* - IDs of active elements must be unique ([url](https://dequeuniversity.com/rules/axe/4.7/duplicate-id-active?application=axeAPI))
|
|
381
361
|
*/
|
|
382
|
-
duplicateIdActive:
|
|
362
|
+
readonly duplicateIdActive: "duplicate-id-active";
|
|
383
363
|
/**
|
|
384
364
|
* - Ensures every id attribute value used in ARIA and in labels is unique
|
|
385
|
-
* - IDs used in ARIA and labels must be unique ([url](https://dequeuniversity.com/rules/axe/4.
|
|
365
|
+
* - IDs used in ARIA and labels must be unique ([url](https://dequeuniversity.com/rules/axe/4.7/duplicate-id-aria?application=axeAPI))
|
|
386
366
|
*/
|
|
387
|
-
duplicateIdAria:
|
|
367
|
+
readonly duplicateIdAria: "duplicate-id-aria";
|
|
388
368
|
/**
|
|
389
369
|
* - Ensures every id attribute value is unique
|
|
390
|
-
* - id attribute value must be unique ([url](https://dequeuniversity.com/rules/axe/4.
|
|
370
|
+
* - id attribute value must be unique ([url](https://dequeuniversity.com/rules/axe/4.7/duplicate-id?application=axeAPI))
|
|
391
371
|
*/
|
|
392
|
-
duplicateId:
|
|
372
|
+
readonly duplicateId: "duplicate-id";
|
|
393
373
|
/**
|
|
394
374
|
* - Ensures `<marquee>` elements are not used
|
|
395
|
-
* - `<marquee>` elements are deprecated and must not be used ([url](https://dequeuniversity.com/rules/axe/4.
|
|
375
|
+
* - `<marquee>` elements are deprecated and must not be used ([url](https://dequeuniversity.com/rules/axe/4.7/marquee?application=axeAPI))
|
|
396
376
|
*/
|
|
397
|
-
marquee:
|
|
377
|
+
readonly marquee: "marquee";
|
|
398
378
|
};
|
|
399
379
|
export declare const semantics: {
|
|
400
380
|
/**
|
|
401
381
|
* - Ensures the order of headings is semantically correct
|
|
402
|
-
* - Heading levels should only increase by one ([url](https://dequeuniversity.com/rules/axe/4.
|
|
382
|
+
* - Heading levels should only increase by one ([url](https://dequeuniversity.com/rules/axe/4.7/heading-order?application=axeAPI))
|
|
403
383
|
*/
|
|
404
|
-
headingOrder:
|
|
384
|
+
readonly headingOrder: "heading-order";
|
|
405
385
|
/**
|
|
406
386
|
* - Ensure that links with the same accessible name serve a similar purpose
|
|
407
|
-
* - Links with the same name must have a similar purpose ([url](https://dequeuniversity.com/rules/axe/4.
|
|
387
|
+
* - Links with the same name must have a similar purpose ([url](https://dequeuniversity.com/rules/axe/4.7/identical-links-same-purpose?application=axeAPI))
|
|
408
388
|
*/
|
|
409
|
-
identicalLinksSamePurpose:
|
|
389
|
+
readonly identicalLinksSamePurpose: "identical-links-same-purpose";
|
|
410
390
|
/**
|
|
411
391
|
* - Ensures that elements labelled through their content must have their visible text as part of their accessible name
|
|
412
|
-
* - Elements must have their visible text as part of their accessible name ([url](https://dequeuniversity.com/rules/axe/4.
|
|
392
|
+
* - Elements must have their visible text as part of their accessible name ([url](https://dequeuniversity.com/rules/axe/4.7/label-content-name-mismatch?application=axeAPI))
|
|
413
393
|
*/
|
|
414
|
-
labelContentNameMismatch:
|
|
394
|
+
readonly labelContentNameMismatch: "label-content-name-mismatch";
|
|
415
395
|
/**
|
|
416
396
|
* - Ensures the banner landmark is at top level
|
|
417
|
-
* - Banner landmark should not be contained in another landmark ([url](https://dequeuniversity.com/rules/axe/4.
|
|
397
|
+
* - Banner landmark should not be contained in another landmark ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-banner-is-top-level?application=axeAPI))
|
|
418
398
|
*/
|
|
419
|
-
landmarkBannerIsTopLevel:
|
|
399
|
+
readonly landmarkBannerIsTopLevel: "landmark-banner-is-top-level";
|
|
420
400
|
/**
|
|
421
401
|
* - Ensures the complementary landmark or aside is at top level
|
|
422
|
-
* - Aside should not be contained in another landmark ([url](https://dequeuniversity.com/rules/axe/4.
|
|
402
|
+
* - Aside should not be contained in another landmark ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-complementary-is-top-level?application=axeAPI))
|
|
423
403
|
*/
|
|
424
|
-
landmarkComplementaryIsTopLevel:
|
|
404
|
+
readonly landmarkComplementaryIsTopLevel: "landmark-complementary-is-top-level";
|
|
425
405
|
/**
|
|
426
406
|
* - Ensures the contentinfo landmark is at top level
|
|
427
|
-
* - Contentinfo landmark should not be contained in another landmark ([url](https://dequeuniversity.com/rules/axe/4.
|
|
407
|
+
* - Contentinfo landmark should not be contained in another landmark ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-contentinfo-is-top-level?application=axeAPI))
|
|
428
408
|
*/
|
|
429
|
-
landmarkContentinfoIsTopLevel:
|
|
409
|
+
readonly landmarkContentinfoIsTopLevel: "landmark-contentinfo-is-top-level";
|
|
430
410
|
/**
|
|
431
411
|
* - Ensures the main landmark is at top level
|
|
432
|
-
* - Main landmark should not be contained in another landmark ([url](https://dequeuniversity.com/rules/axe/4.
|
|
412
|
+
* - Main landmark should not be contained in another landmark ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-main-is-top-level?application=axeAPI))
|
|
433
413
|
*/
|
|
434
|
-
landmarkMainIsTopLevel:
|
|
414
|
+
readonly landmarkMainIsTopLevel: "landmark-main-is-top-level";
|
|
435
415
|
/**
|
|
436
416
|
* - Ensures the document has at most one banner landmark
|
|
437
|
-
* - Document should not have more than one banner landmark ([url](https://dequeuniversity.com/rules/axe/4.
|
|
417
|
+
* - Document should not have more than one banner landmark ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-no-duplicate-banner?application=axeAPI))
|
|
438
418
|
*/
|
|
439
|
-
landmarkNoDuplicateBanner:
|
|
419
|
+
readonly landmarkNoDuplicateBanner: "landmark-no-duplicate-banner";
|
|
440
420
|
/**
|
|
441
421
|
* - Ensures the document has at most one contentinfo landmark
|
|
442
|
-
* - Document should not have more than one contentinfo landmark ([url](https://dequeuniversity.com/rules/axe/4.
|
|
422
|
+
* - Document should not have more than one contentinfo landmark ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-no-duplicate-contentinfo?application=axeAPI))
|
|
443
423
|
*/
|
|
444
|
-
landmarkNoDuplicateContentinfo:
|
|
424
|
+
readonly landmarkNoDuplicateContentinfo: "landmark-no-duplicate-contentinfo";
|
|
445
425
|
/**
|
|
446
426
|
* - Ensures the document has at most one main landmark
|
|
447
|
-
* - Document should not have more than one main landmark ([url](https://dequeuniversity.com/rules/axe/4.
|
|
427
|
+
* - Document should not have more than one main landmark ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-no-duplicate-main?application=axeAPI))
|
|
448
428
|
*/
|
|
449
|
-
landmarkNoDuplicateMain:
|
|
429
|
+
readonly landmarkNoDuplicateMain: "landmark-no-duplicate-main";
|
|
450
430
|
/**
|
|
451
431
|
* - Ensures the document has a main landmark
|
|
452
|
-
* - Document should have one main landmark ([url](https://dequeuniversity.com/rules/axe/4.
|
|
432
|
+
* - Document should have one main landmark ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-one-main?application=axeAPI))
|
|
453
433
|
*/
|
|
454
|
-
landmarkOneMain:
|
|
434
|
+
readonly landmarkOneMain: "landmark-one-main";
|
|
455
435
|
/**
|
|
456
436
|
* - Landmarks should have a unique role or role/label/title (i.e. accessible name) combination
|
|
457
|
-
* - Ensures landmarks are unique ([url](https://dequeuniversity.com/rules/axe/4.
|
|
437
|
+
* - Ensures landmarks are unique ([url](https://dequeuniversity.com/rules/axe/4.7/landmark-unique?application=axeAPI))
|
|
458
438
|
*/
|
|
459
|
-
landmarkUnique:
|
|
439
|
+
readonly landmarkUnique: "landmark-unique";
|
|
460
440
|
/**
|
|
461
441
|
* - Ensure bold, italic text and font-size is not used to style `<p>` elements as a heading
|
|
462
|
-
* - Styled `<p>` elements must not be used as headings ([url](https://dequeuniversity.com/rules/axe/4.
|
|
442
|
+
* - Styled `<p>` elements must not be used as headings ([url](https://dequeuniversity.com/rules/axe/4.7/p-as-heading?application=axeAPI))
|
|
463
443
|
*/
|
|
464
|
-
pAsHeading:
|
|
444
|
+
readonly pAsHeading: "p-as-heading";
|
|
465
445
|
/**
|
|
466
446
|
* - Ensure that the page, or at least one of its frames contains a level-one heading
|
|
467
|
-
* - Page should contain a level-one heading ([url](https://dequeuniversity.com/rules/axe/4.
|
|
447
|
+
* - Page should contain a level-one heading ([url](https://dequeuniversity.com/rules/axe/4.7/page-has-heading-one?application=axeAPI))
|
|
468
448
|
*/
|
|
469
|
-
pageHasHeadingOne:
|
|
449
|
+
readonly pageHasHeadingOne: "page-has-heading-one";
|
|
470
450
|
};
|
|
471
451
|
export declare const language: {
|
|
472
452
|
/**
|
|
473
453
|
* - Ensures every HTML document has a lang attribute
|
|
474
|
-
* - `<html>` element must have a lang attribute ([url](https://dequeuniversity.com/rules/axe/4.
|
|
454
|
+
* - `<html>` element must have a lang attribute ([url](https://dequeuniversity.com/rules/axe/4.7/html-has-lang?application=axeAPI))
|
|
475
455
|
*/
|
|
476
|
-
htmlHasLang:
|
|
456
|
+
readonly htmlHasLang: "html-has-lang";
|
|
477
457
|
/**
|
|
478
458
|
* - Ensures the lang attribute of the `<html>` element has a valid value
|
|
479
|
-
* - `<html>` element must have a valid value for the lang attribute ([url](https://dequeuniversity.com/rules/axe/4.
|
|
459
|
+
* - `<html>` element must have a valid value for the lang attribute ([url](https://dequeuniversity.com/rules/axe/4.7/html-lang-valid?application=axeAPI))
|
|
480
460
|
*/
|
|
481
|
-
htmlLangValid:
|
|
461
|
+
readonly htmlLangValid: "html-lang-valid";
|
|
482
462
|
/**
|
|
483
463
|
* - Ensure that HTML elements with both valid lang and xml:lang attributes agree on the base language of the page
|
|
484
|
-
* - HTML elements with lang and xml:lang must have the same base language ([url](https://dequeuniversity.com/rules/axe/4.
|
|
464
|
+
* - HTML elements with lang and xml:lang must have the same base language ([url](https://dequeuniversity.com/rules/axe/4.7/html-xml-lang-mismatch?application=axeAPI))
|
|
485
465
|
*/
|
|
486
|
-
htmlXmlLangMismatch:
|
|
466
|
+
readonly htmlXmlLangMismatch: "html-xml-lang-mismatch";
|
|
487
467
|
/**
|
|
488
468
|
* - Ensures lang attributes have valid values
|
|
489
|
-
* - lang attribute must have a valid value ([url](https://dequeuniversity.com/rules/axe/4.
|
|
469
|
+
* - lang attribute must have a valid value ([url](https://dequeuniversity.com/rules/axe/4.7/valid-lang?application=axeAPI))
|
|
490
470
|
*/
|
|
491
|
-
validLang:
|
|
471
|
+
readonly validLang: "valid-lang";
|
|
492
472
|
};
|
|
493
473
|
export declare const sensoryAndVisualCues: {
|
|
494
474
|
/**
|
|
495
475
|
* - Ensures `<meta name="viewport">` can scale a significant amount
|
|
496
|
-
* - Users should be able to zoom and scale the text up to 500% ([url](https://dequeuniversity.com/rules/axe/4.
|
|
476
|
+
* - Users should be able to zoom and scale the text up to 500% ([url](https://dequeuniversity.com/rules/axe/4.7/meta-viewport-large?application=axeAPI))
|
|
497
477
|
*/
|
|
498
|
-
metaViewportLarge:
|
|
478
|
+
readonly metaViewportLarge: "meta-viewport-large";
|
|
499
479
|
/**
|
|
500
480
|
* - Ensures `<meta name="viewport">` does not disable text scaling and zooming
|
|
501
|
-
* - Zooming and scaling must not be disabled ([url](https://dequeuniversity.com/rules/axe/4.
|
|
481
|
+
* - Zooming and scaling must not be disabled ([url](https://dequeuniversity.com/rules/axe/4.7/meta-viewport?application=axeAPI))
|
|
502
482
|
*/
|
|
503
|
-
metaViewport:
|
|
483
|
+
readonly metaViewport: "meta-viewport";
|
|
504
484
|
/**
|
|
505
485
|
* - Ensure touch target have sufficient size and space
|
|
506
|
-
* - All touch targets must be 24px large, or leave sufficient space ([url](https://dequeuniversity.com/rules/axe/4.
|
|
486
|
+
* - All touch targets must be 24px large, or leave sufficient space ([url](https://dequeuniversity.com/rules/axe/4.7/target-size?application=axeAPI))
|
|
507
487
|
*/
|
|
508
|
-
targetSize:
|
|
488
|
+
readonly targetSize: "target-size";
|
|
509
489
|
};
|
|
510
490
|
export declare const tables: {
|
|
511
491
|
/**
|
|
512
492
|
* - Ensures the scope attribute is used correctly on tables
|
|
513
|
-
* - scope attribute should be used correctly ([url](https://dequeuniversity.com/rules/axe/4.
|
|
493
|
+
* - scope attribute should be used correctly ([url](https://dequeuniversity.com/rules/axe/4.7/scope-attr-valid?application=axeAPI))
|
|
514
494
|
*/
|
|
515
|
-
scopeAttrValid:
|
|
495
|
+
readonly scopeAttrValid: "scope-attr-valid";
|
|
516
496
|
/**
|
|
517
497
|
* - Ensure the `<caption>` element does not contain the same text as the summary attribute
|
|
518
|
-
* - tables should not have the same summary and caption ([url](https://dequeuniversity.com/rules/axe/4.
|
|
498
|
+
* - tables should not have the same summary and caption ([url](https://dequeuniversity.com/rules/axe/4.7/table-duplicate-name?application=axeAPI))
|
|
519
499
|
*/
|
|
520
|
-
tableDuplicateName:
|
|
500
|
+
readonly tableDuplicateName: "table-duplicate-name";
|
|
521
501
|
/**
|
|
522
502
|
* - Ensure that tables with a caption use the `<caption>` element.
|
|
523
|
-
* - Data or header cells must not be used to give caption to a data table. ([url](https://dequeuniversity.com/rules/axe/4.
|
|
503
|
+
* - Data or header cells must not be used to give caption to a data table. ([url](https://dequeuniversity.com/rules/axe/4.7/table-fake-caption?application=axeAPI))
|
|
524
504
|
*/
|
|
525
|
-
tableFakeCaption:
|
|
505
|
+
readonly tableFakeCaption: "table-fake-caption";
|
|
526
506
|
/**
|
|
527
507
|
* - Ensure that each non-empty data cell in a `<table>` larger than 3 by 3 has one or more table headers
|
|
528
|
-
* - Non-empty `<td>` elements in larger `<table>` must have an associated table header ([url](https://dequeuniversity.com/rules/axe/4.
|
|
508
|
+
* - Non-empty `<td>` elements in larger `<table>` must have an associated table header ([url](https://dequeuniversity.com/rules/axe/4.7/td-has-header?application=axeAPI))
|
|
529
509
|
*/
|
|
530
|
-
tdHasHeader:
|
|
510
|
+
readonly tdHasHeader: "td-has-header";
|
|
531
511
|
/**
|
|
532
512
|
* - Ensure that each cell in a table that uses the headers attribute refers only to other cells in that table
|
|
533
|
-
* - Table cells that use the headers attribute must only refer to cells in the same table ([url](https://dequeuniversity.com/rules/axe/4.
|
|
513
|
+
* - Table cells that use the headers attribute must only refer to cells in the same table ([url](https://dequeuniversity.com/rules/axe/4.7/td-headers-attr?application=axeAPI))
|
|
534
514
|
*/
|
|
535
|
-
tdHeadersAttr:
|
|
515
|
+
readonly tdHeadersAttr: "td-headers-attr";
|
|
536
516
|
/**
|
|
537
517
|
* - Ensure that `<th>` elements and elements with role=columnheader/rowheader have data cells they describe
|
|
538
|
-
* - Table headers in a data table must refer to data cells ([url](https://dequeuniversity.com/rules/axe/4.
|
|
518
|
+
* - Table headers in a data table must refer to data cells ([url](https://dequeuniversity.com/rules/axe/4.7/th-has-data-cells?application=axeAPI))
|
|
539
519
|
*/
|
|
540
|
-
thHasDataCells:
|
|
520
|
+
readonly thHasDataCells: "th-has-data-cells";
|
|
541
521
|
};
|