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