|
1 | 1 | [ |
2 | 2 | { |
3 | | - "id": "aria-valid-attr-value", |
4 | | - "impact": "critical", |
| 3 | + "id": "aria-prohibited-attr", |
| 4 | + "impact": "serious", |
5 | 5 | "tags": [ |
6 | 6 | "cat.aria", |
7 | 7 | "wcag2a", |
|
11 | 11 | "RGAAv4", |
12 | 12 | "RGAA-7.1.1" |
13 | 13 | ], |
14 | | - "description": "Ensure all ARIA attributes have valid values", |
15 | | - "help": "ARIA attributes must conform to valid values", |
16 | | - "helpUrl": "https://dequeuniversity.com/rules/axe/4.11/aria-valid-attr-value?application=playwright", |
| 14 | + "description": "Ensure ARIA attributes are not prohibited for an element's role", |
| 15 | + "help": "Elements must only use permitted ARIA attributes", |
| 16 | + "helpUrl": "https://dequeuniversity.com/rules/axe/4.11/aria-prohibited-attr?application=playwright", |
17 | 17 | "nodes": [ |
18 | 18 | { |
19 | 19 | "any": [], |
20 | | - "all": [ |
21 | | - { |
22 | | - "id": "aria-valid-attr-value", |
23 | | - "data": { |
24 | | - "messageKey": "noId", |
25 | | - "needsReview": "aria-labelledby=\"carousel-articles-suggested-all-title\"" |
26 | | - }, |
27 | | - "relatedNodes": [], |
28 | | - "impact": "critical", |
29 | | - "message": "ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
30 | | - } |
31 | | - ], |
32 | | - "none": [], |
33 | | - "impact": "critical", |
34 | | - "html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-all-title\" data-astro-cid-kfjqoxel=\"\">", |
35 | | - "target": [ |
36 | | - ".mb-0:nth-child(1) > carousel-slider > .py-8.lg\\:px-8.px-4 > .embla.relative[role=\"region\"]" |
37 | | - ], |
38 | | - "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
39 | | - }, |
40 | | - { |
41 | | - "any": [], |
42 | | - "all": [ |
43 | | - { |
44 | | - "id": "aria-valid-attr-value", |
45 | | - "data": { |
46 | | - "messageKey": "noId", |
47 | | - "needsReview": "aria-labelledby=\"carousel-articles-suggested-all-title\"" |
48 | | - }, |
49 | | - "relatedNodes": [], |
50 | | - "impact": "critical", |
51 | | - "message": "ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
52 | | - } |
53 | | - ], |
54 | | - "none": [], |
55 | | - "impact": "critical", |
56 | | - "html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-all-title\" data-astro-cid-kfjqoxel=\"\">", |
57 | | - "target": [ |
58 | | - ".mb-0:nth-child(2) > carousel-slider > .py-8.lg\\:px-8.px-4 > .embla.relative[role=\"region\"]" |
59 | | - ], |
60 | | - "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
61 | | - }, |
62 | | - { |
63 | | - "any": [], |
64 | | - "all": [ |
65 | | - { |
66 | | - "id": "aria-valid-attr-value", |
67 | | - "data": { |
68 | | - "messageKey": "noId", |
69 | | - "needsReview": "aria-labelledby=\"carousel-articles-suggested-all-title\"" |
70 | | - }, |
71 | | - "relatedNodes": [], |
72 | | - "impact": "critical", |
73 | | - "message": "ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
74 | | - } |
75 | | - ], |
76 | | - "none": [], |
77 | | - "impact": "critical", |
78 | | - "html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-all-title\" data-astro-cid-kfjqoxel=\"\">", |
79 | | - "target": [ |
80 | | - ".mb-0:nth-child(3) > carousel-slider > .py-8.lg\\:px-8.px-4 > .embla.relative[role=\"region\"]" |
81 | | - ], |
82 | | - "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
83 | | - }, |
84 | | - { |
85 | | - "any": [], |
86 | | - "all": [ |
| 20 | + "all": [], |
| 21 | + "none": [ |
87 | 22 | { |
88 | | - "id": "aria-valid-attr-value", |
| 23 | + "id": "aria-prohibited-attr", |
89 | 24 | "data": { |
90 | | - "messageKey": "noId", |
91 | | - "needsReview": "aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 25 | + "role": null, |
| 26 | + "nodeName": "highlighter-element", |
| 27 | + "messageKey": "noRoleSingular", |
| 28 | + "prohibited": [ |
| 29 | + "aria-label" |
| 30 | + ] |
92 | 31 | }, |
93 | 32 | "relatedNodes": [], |
94 | | - "impact": "critical", |
95 | | - "message": "ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 33 | + "impact": "serious", |
| 34 | + "message": "aria-label attribute is not well supported on a highlighter-element with no valid role attribute." |
96 | 35 | } |
97 | 36 | ], |
98 | | - "none": [], |
99 | | - "impact": "critical", |
100 | | - "html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-all-title\" data-astro-cid-kfjqoxel=\"\">", |
| 37 | + "impact": "serious", |
| 38 | + "html": "<highlighter-element aria-label=\"Share this insight\">", |
101 | 39 | "target": [ |
102 | | - ".mb-0:nth-child(4) > carousel-slider > .py-8.lg\\:px-8.px-4 > .embla.relative[role=\"region\"]" |
| 40 | + "highlighter-element" |
103 | 41 | ], |
104 | | - "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 42 | + "failureSummary": "Fix all of the following:\n aria-label attribute is not well supported on a highlighter-element with no valid role attribute." |
105 | 43 | }, |
106 | 44 | { |
107 | 45 | "any": [], |
108 | | - "all": [ |
| 46 | + "all": [], |
| 47 | + "none": [ |
109 | 48 | { |
110 | | - "id": "aria-valid-attr-value", |
| 49 | + "id": "aria-prohibited-attr", |
111 | 50 | "data": { |
112 | | - "messageKey": "noId", |
113 | | - "needsReview": "aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 51 | + "role": null, |
| 52 | + "nodeName": "section", |
| 53 | + "messageKey": "noRoleSingular", |
| 54 | + "prohibited": [ |
| 55 | + "aria-labelledby" |
| 56 | + ] |
114 | 57 | }, |
115 | 58 | "relatedNodes": [], |
116 | | - "impact": "critical", |
117 | | - "message": "ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 59 | + "impact": "serious", |
| 60 | + "message": "aria-labelledby attribute is not well supported on a section with no valid role attribute." |
118 | 61 | } |
119 | 62 | ], |
120 | | - "none": [], |
121 | | - "impact": "critical", |
122 | | - "html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-all-title\" data-astro-cid-kfjqoxel=\"\">", |
| 63 | + "impact": "serious", |
| 64 | + "html": "<section aria-labelledby=\"article-share-title\">", |
123 | 65 | "target": [ |
124 | | - ".mb-0:nth-child(5) > carousel-slider > .py-8.lg\\:px-8.px-4 > .embla.relative[role=\"region\"]" |
| 66 | + "section[aria-labelledby=\"article-share-title\"]" |
125 | 67 | ], |
126 | | - "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
127 | | - }, |
| 68 | + "failureSummary": "Fix all of the following:\n aria-labelledby attribute is not well supported on a section with no valid role attribute." |
| 69 | + } |
| 70 | + ] |
| 71 | + }, |
| 72 | + { |
| 73 | + "id": "aria-valid-attr-value", |
| 74 | + "impact": "critical", |
| 75 | + "tags": [ |
| 76 | + "cat.aria", |
| 77 | + "wcag2a", |
| 78 | + "wcag412", |
| 79 | + "EN-301-549", |
| 80 | + "EN-9.4.1.2", |
| 81 | + "RGAAv4", |
| 82 | + "RGAA-7.1.1" |
| 83 | + ], |
| 84 | + "description": "Ensure all ARIA attributes have valid values", |
| 85 | + "help": "ARIA attributes must conform to valid values", |
| 86 | + "helpUrl": "https://dequeuniversity.com/rules/axe/4.11/aria-valid-attr-value?application=playwright", |
| 87 | + "nodes": [ |
128 | 88 | { |
129 | 89 | "any": [], |
130 | 90 | "all": [ |
131 | 91 | { |
132 | 92 | "id": "aria-valid-attr-value", |
133 | 93 | "data": { |
134 | | - "messageKey": "noId", |
135 | | - "needsReview": "aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 94 | + "messageKey": "controlsWithinPopup", |
| 95 | + "needsReview": "aria-controls=\"mastodon-modal\"" |
136 | 96 | }, |
137 | 97 | "relatedNodes": [], |
138 | 98 | "impact": "critical", |
139 | | - "message": "ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 99 | + "message": "Unable to determine if aria-controls referenced ID exists on the page while using aria-haspopup: aria-controls=\"mastodon-modal\"" |
140 | 100 | } |
141 | 101 | ], |
142 | 102 | "none": [], |
143 | 103 | "impact": "critical", |
144 | | - "html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-all-title\" data-astro-cid-kfjqoxel=\"\">", |
| 104 | + "html": "<button type=\"button\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on Mastodon\" aria-haspopup=\"dialog\" aria-controls=\"mastodon-modal\" data-platform=\"mastodon\" data-share=\"mastodon\" data-share-text=\"Demo Page - This is ...\">", |
145 | 105 | "target": [ |
146 | | - ".mb-0:nth-child(6) > carousel-slider > .py-8.lg\\:px-8.px-4 > .embla.relative[role=\"region\"]" |
| 106 | + "social-share-element[url=\"/articles/demo\"] > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-mastodon.hover\\:bg-mastodon-active[aria-haspopup=\"dialog\"]" |
147 | 107 | ], |
148 | | - "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 108 | + "failureSummary": "Fix all of the following:\n Unable to determine if aria-controls referenced ID exists on the page while using aria-haspopup: aria-controls=\"mastodon-modal\"" |
149 | 109 | }, |
150 | 110 | { |
151 | 111 | "any": [], |
152 | 112 | "all": [ |
153 | 113 | { |
154 | 114 | "id": "aria-valid-attr-value", |
155 | 115 | "data": { |
156 | | - "messageKey": "noId", |
157 | | - "needsReview": "aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 116 | + "messageKey": "noIdShadow", |
| 117 | + "needsReview": "aria-labelledby=\"article-share-title\"" |
158 | 118 | }, |
159 | 119 | "relatedNodes": [], |
160 | 120 | "impact": "critical", |
161 | | - "message": "ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 121 | + "message": "ARIA attribute element ID does not exist on the page or is a descendant of a different shadow DOM tree: aria-labelledby=\"article-share-title\"" |
162 | 122 | } |
163 | 123 | ], |
164 | 124 | "none": [], |
165 | 125 | "impact": "critical", |
166 | | - "html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-all-title\" data-astro-cid-kfjqoxel=\"\">", |
| 126 | + "html": "<section aria-labelledby=\"article-share-title\">", |
167 | 127 | "target": [ |
168 | | - ".mb-0:nth-child(7) > carousel-slider > .py-8.lg\\:px-8.px-4 > .embla.relative[role=\"region\"]" |
| 128 | + "section[aria-labelledby=\"article-share-title\"]" |
169 | 129 | ], |
170 | | - "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 130 | + "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page or is a descendant of a different shadow DOM tree: aria-labelledby=\"article-share-title\"" |
171 | 131 | }, |
172 | 132 | { |
173 | 133 | "any": [], |
174 | 134 | "all": [ |
175 | 135 | { |
176 | 136 | "id": "aria-valid-attr-value", |
177 | 137 | "data": { |
178 | | - "messageKey": "noId", |
179 | | - "needsReview": "aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 138 | + "messageKey": "controlsWithinPopup", |
| 139 | + "needsReview": "aria-controls=\"mastodon-modal\"" |
180 | 140 | }, |
181 | 141 | "relatedNodes": [], |
182 | 142 | "impact": "critical", |
183 | | - "message": "ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 143 | + "message": "Unable to determine if aria-controls referenced ID exists on the page while using aria-haspopup: aria-controls=\"mastodon-modal\"" |
184 | 144 | } |
185 | 145 | ], |
186 | 146 | "none": [], |
187 | 147 | "impact": "critical", |
188 | | - "html": "<div class=\"embla relative\" role=\"region\" aria-labelledby=\"carousel-articles-suggested-all-title\" data-astro-cid-kfjqoxel=\"\">", |
| 148 | + "html": "<button type=\"button\" class=\"_button_1qagh_1 soci...\" aria-label=\"Share on Mastodon\" aria-haspopup=\"dialog\" aria-controls=\"mastodon-modal\" data-platform=\"mastodon\" data-share=\"mastodon\" data-share-text=\"Demo Article - Markd...\">", |
189 | 149 | "target": [ |
190 | | - ".mb-0:nth-child(8) > carousel-slider > .py-8.lg\\:px-8.px-4 > .embla.relative[role=\"region\"]" |
| 150 | + ".gap-6.flex-col.flex > .mx-6.md\\:items-center.md\\:flex-row > .sm\\:pl-12.md\\:flex-1.w-full > social-share-element > .social-share.max-sm\\:justify-center[aria-label=\"Share this content\"] > .bg-mastodon.hover\\:bg-mastodon-active[aria-haspopup=\"dialog\"]" |
191 | 151 | ], |
192 | | - "failureSummary": "Fix all of the following:\n ARIA attribute element ID does not exist on the page: aria-labelledby=\"carousel-articles-suggested-all-title\"" |
| 152 | + "failureSummary": "Fix all of the following:\n Unable to determine if aria-controls referenced ID exists on the page while using aria-haspopup: aria-controls=\"mastodon-modal\"" |
193 | 153 | } |
194 | 154 | ] |
195 | 155 | } |
|
0 commit comments