Commit ef1ad85
1 parent efd00e4 commit ef1ad85
File tree
2 files changed
+75
-1
lines changed- validator-tests
2 files changed
+75-1lines changed+18-1Original file line number Diff line number Diff line change @@ -1891,6 +1891,7 @@ <h2>Definition of Roles</h2>1891
1891
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>1892
1892
<td class="role-disallowed">1893
1893
<ul>1894
+
<li><pref>aria-braillelabel</pref></li>1894
1895
<li><pref>aria-label</pref></li>1895
1896
<li><pref>aria-labelledby</pref></li>1896
1897
</ul>@@ -2179,6 +2180,7 @@ <h2>Definition of Roles</h2>2179
2180
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>2180
2181
<td class="role-disallowed">2181
2182
<ul>2183
+
<li><pref>aria-braillelabel</pref></li>2182
2184
<li><pref>aria-label</pref></li>2183
2185
<li><pref>aria-labelledby</pref></li>2184
2186
</ul>@@ -2940,6 +2942,7 @@ <h2>Definition of Roles</h2>2940
2942
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>2941
2943
<td class="role-disallowed">2942
2944
<ul>2945
+
<li><pref>aria-braillelabel</pref></li>2943
2946
<li><pref>aria-label</pref></li>2944
2947
<li><pref>aria-labelledby</pref></li>2945
2948
</ul>@@ -3028,6 +3031,7 @@ <h2>Definition of Roles</h2>3028
3031
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>3029
3032
<td class="role-disallowed">3030
3033
<ul>3034
+
<li><pref>aria-braillelabel</pref></li>3031
3035
<li><pref>aria-label</pref></li>3032
3036
<li><pref>aria-labelledby</pref></li>3033
3037
</ul>@@ -3355,6 +3359,7 @@ <h2>Definition of Roles</h2>3355
3359
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>3356
3360
<td class="role-disallowed">3357
3361
<ul>3362
+
<li><pref>aria-braillelabel</pref></li>3358
3363
<li><pref>aria-label</pref></li>3359
3364
<li><pref>aria-labelledby</pref></li>3360
3365
</ul>@@ -3698,6 +3703,7 @@ <h2>Definition of Roles</h2>3698
3703
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>3699
3704
<td class="role-disallowed">3700
3705
<ul>3706
+
<li><pref>aria-braillelabel</pref></li>3701
3707
<li><pref>aria-brailleroledescription</pref></li>3702
3708
<li><pref>aria-label</pref></li>3703
3709
<li><pref>aria-labelledby</pref></li>@@ -4338,6 +4344,7 @@ <h2>Definition of Roles</h2>4338
4344
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>4339
4345
<td class="role-disallowed">4340
4346
<ul>4347
+
<li><pref>aria-braillelabel</pref></li>4341
4348
<li><pref>aria-label</pref></li>4342
4349
<li><pref>aria-labelledby</pref></li>4343
4350
</ul>@@ -5048,6 +5055,7 @@ <h2>Definition of Roles</h2>5048
5055
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>5049
5056
<td class="role-disallowed">5050
5057
<ul>5058
+
<li><pref>aria-braillelabel</pref></li>5051
5059
<li><pref>aria-label</pref></li>5052
5060
<li><pref>aria-labelledby</pref></li>5053
5061
</ul>@@ -6075,6 +6083,7 @@ <h5>Presentational Role Inheritance</h5>6075
6083
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>6076
6084
<td class="role-disallowed">6077
6085
<ul>6086
+
<li><pref>aria-braillelabel</pref></li>6078
6087
<li><pref>aria-label</pref></li>6079
6088
<li><pref>aria-labelledby</pref></li>6080
6089
</ul>@@ -6481,6 +6490,7 @@ <h5>Presentational Role Inheritance</h5>6481
6490
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>6482
6491
<td class="role-disallowed">6483
6492
<ul>6493
+
<li><pref>aria-braillelabel</pref></li>6484
6494
<li><pref>aria-label</pref></li>6485
6495
<li><pref>aria-labelledby</pref></li>6486
6496
</ul>@@ -8283,6 +8293,7 @@ <h5>Presentational Role Inheritance</h5>8283
8293
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>8284
8294
<td class="role-disallowed">8285
8295
<ul>8296
+
<li><pref>aria-braillelabel</pref></li>8286
8297
<li><pref>aria-label</pref></li>8287
8298
<li><pref>aria-labelledby</pref></li>8288
8299
</ul>@@ -8441,6 +8452,7 @@ <h5>Presentational Role Inheritance</h5>8441
8452
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>8442
8453
<td class="role-disallowed">8443
8454
<ul>8455
+
<li><pref>aria-braillelabel</pref></li>8444
8456
<li><pref>aria-label</pref></li>8445
8457
<li><pref>aria-labelledby</pref></li>8446
8458
</ul>@@ -8544,6 +8556,7 @@ <h5>Presentational Role Inheritance</h5>8544
8556
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>8545
8557
<td class="role-disallowed">8546
8558
<ul>8559
+
<li><pref>aria-braillelabel</pref></li>8547
8560
<li><pref>aria-label</pref></li>8548
8561
<li><pref>aria-labelledby</pref></li>8549
8562
</ul>@@ -8631,6 +8644,7 @@ <h5>Presentational Role Inheritance</h5>8631
8644
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>8632
8645
<td class="role-disallowed">8633
8646
<ul>8647
+
<li><pref>aria-braillelabel</pref></li>8634
8648
<li><pref>aria-label</pref></li>8635
8649
<li><pref>aria-labelledby</pref></li>8636
8650
</ul>@@ -9187,6 +9201,7 @@ <h5>Presentational Role Inheritance</h5>9187
9201
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>9188
9202
<td class="role-disallowed">9189
9203
<ul>9204
+
<li><pref>aria-braillelabel</pref></li>9190
9205
<li><pref>aria-label</pref></li>9191
9206
<li><pref>aria-labelledby</pref></li>9192
9207
</ul>@@ -9502,6 +9517,7 @@ <h5>Presentational Role Inheritance</h5>9502
9517
<th class="role-disallowed-head" scope="row">Prohibited States and Properties:</th>9503
9518
<td class="role-disallowed">9504
9519
<ul>9520
+
<li><pref>aria-braillelabel</pref></li>9505
9521
<li><pref>aria-label</pref></li>9506
9522
<li><pref>aria-labelledby</pref></li>9507
9523
</ul>@@ -10685,6 +10701,7 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>10685
10701
<li>The value of <code>aria-braillelabel</code> does not contain any characters in <a>Unicode Braille Patterns</a> or consists of only characters in <a>Unicode Braille Patterns</a>; the value does not only contain Braille Pattern dots-0.</li>10686
10702
<li>The value of <code>aria-braillelabel</code> is not identical to the element's accessible name.</li>10687
10703
</ol>10704
+
<p>Authors MUST NOT specify <code>aria-braillelabel</code> on an element which has an explicit or implicit WAI-ARIA role where <code>aria-braillelabel</code> is <a href="#prohibitedattributes">prohibited</a>.</p>10688
10705
<p class="note">Note that <a>Assistive Technologies</a> with braille support can convert the accessible name to Braille. In addition, assistive technologies will be able to customize such braille output according to user preferences. Using only the accessible name, e.g., from content or via <code>aria-label</code> is <strong>almost always</strong> the better user experience and authors are <strong>strongly discouraged</strong> from using <code>aria-braillelabel</code> to replicate <code>aria-label</code>. Instead, <code>aria-braillelabel</code> is meant to be used only if the accessible name cannot provide an adequate braille representation, i.e., when a specialized braille description is very different from a text description converted to Braille. It is very important to note that when using <code>aria-braillelabel</code> authors are solely responsible for localizing the attribute value so that it aligns with the document language. In addition, authors need to design a way to clearly communicate the use of this attribute to the user. For example, this could be done in the product documentation. This is even more important when the value consists of Unicode Braille Patterns because <a>Assistive Technologies</a> will pass such content directly to the user without applying user specific braille translations; in general, authors are <strong>strongly discouraged</strong> from using Unicode Braille Patterns in <code>aria-braillelabel</code>.10689
10706
</p>10690
10707
<p><a>Assistive technologies</a> SHOULD use the value of <code>aria-braillelabel</code> when presenting the accessible name of an element in Braille, but SHOULD NOT change other functionality. For example, an assistive technology that provides aural rendering SHOULD use the accessible name.</p>@@ -10709,7 +10726,7 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>10709
10726
<tbody>10710
10727
<tr>10711
10728
<th class="property-applicability-head" scope="row">Used in Roles:</th>10712
-
<td class="property-applicability">All elements of the base markup</td>10729
+
<td class="property-applicability">All elements of the base markup except for some roles or elements that prohibit its use</td>10713
10730
</tr>10714
10731
<tr>10715
10732
<th class="property-descendants-head" scope="row">Inherits into Roles:</th>+57Original file line number Diff line number Diff line change @@ -0,0 +1,57 @@1
+
<!DOCTYPE html>2
+
<html lang="en-US">3
+
<head><title>BrailleLabel Prohibited</title></head>4
+
<body>5
+
6
+
<!--7
+
URL: https://www.w3.org/TR/wai-aria-1.3/#aria-braillelabel8
+
RULE: "Authors MUST NOT specify aria-braillelabel on an element which has an explicit or implicit WAI-ARIA role where aria-braillelabel is prohibited."9
+
-->10
+
11
+
<!-- aria-label -->12
+
<div id="aria-label-1" role="code" aria-braillelabel="foo">bar</div>13
+
<code id="aria-label-2" aria-label="foo">bar</code>14
+
15
+
<div id="aria-label-3" role="deletion" aria-braillelabel="foo">bar</div>16
+
<del id="aria-label-4" aria-label="foo">bar</del>17
+
18
+
<div id="aria-label-5" role="emphasis" aria-braillelabel="foo">bar</div>19
+
<em id="aria-label-6" aria-label="foo">bar</em>20
+
21
+
<div id="aria-label-7" role="generic" aria-braillelabel="foo">bar</div>22
+
<div id="aria-label-8" aria-label="foo">bar</div>23
+
24
+
<div id="aria-label-9" role="insertion" aria-braillelabel="foo">bar</div>25
+
<ins id="aria-label-10" aria-label="foo">bar</ins>26
+
27
+
<div id="aria-label-11" role="paragraph" aria-braillelabel="foo">bar</div>28
+
<p id="aria-label-12" aria-label="foo">bar</p>29
+
30
+
<div id="aria-label-13" role="presentation" aria-braillelabel="foo">bar</div>31
+
<div id="aria-label-14" role="none" aria-label="foo">bar</div>32
+
33
+
<div id="aria-label-15" role="strong" aria-braillelabel="foo">bar</div>34
+
<strong id="aria-label-16" aria-label="foo">bar</strong>35
+
36
+
<div id="aria-label-17" role="subscript" aria-braillelabel="foo">bar</div>37
+
<sub id="aria-label-18" aria-label="foo">bar</sub>38
+
39
+
<div id="aria-label-19" role="superscript" aria-braillelabel="foo">bar</div>40
+
<sup id="aria-label-20" aria-label="foo">bar</sup>41
+
42
+
<div role="table">43
+
<div id="aria-label-21" role="caption" aria-braillelabel="foo">bar</div>44
+
<div role="row">45
+
<div role="cell">baz</div>46
+
</div>47
+
</div>48
+
<table>49
+
<caption id="aria-label-22" aria-braillelabel="foo">bar</caption>50
+
<tr>51
+
<td>baz</td>52
+
</tr>53
+
</table>54
+
55
+
</body>56
+
</html>57
+
0 commit comments