Skip to content

Commit 55a66bc

Browse files
authored
Create aria-rowindextext and aria-colindextext (#994)
1 parent 63ec695 commit 55a66bc

File tree

1 file changed

+83
-2
lines changed

1 file changed

+83
-2
lines changed

index.html

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,8 +1472,10 @@ <h2>Definition of Roles</h2>
14721472
<td class="role-properties">
14731473
<ul>
14741474
<li><pref>aria-colindex</pref></li>
1475+
<li><pref>aria-colindextext</pref></li>
14751476
<li><pref>aria-colspan</pref></li>
14761477
<li><pref>aria-rowindex</pref></li>
1478+
<li><pref>aria-rowindextext</pref></li>
14771479
<li><pref>aria-rowspan</pref></li>
14781480
</ul>
14791481
</td>
@@ -6352,6 +6354,7 @@ <h5>Presentational Roles Conflict Resolution</h5>
63526354
<li><pref>aria-level</pref></li>
63536355
<li><pref>aria-posinset</pref></li>
63546356
<li><pref>aria-rowindex</pref></li>
6357+
<li><pref>aria-rowindextext</pref></li>
63556358
<li><pref>aria-setsize</pref></li>
63566359
<li><sref>aria-selected</sref></li>
63576360
</ul>
@@ -9446,6 +9449,7 @@ <h3>Relationship Attributes</h3>
94469449
<li><pref>aria-activedescendant</pref></li>
94479450
<li><pref>aria-colcount</pref></li>
94489451
<li><pref>aria-colindex</pref></li>
9452+
<li><pref>aria-colindextext</pref></li>
94499453
<li><pref>aria-colspan</pref></li>
94509454
<li><pref>aria-controls</pref></li>
94519455
<li><pref>aria-describedby</pref></li>
@@ -9457,6 +9461,7 @@ <h3>Relationship Attributes</h3>
94579461
<li><pref>aria-posinset</pref></li>
94589462
<li><pref>aria-rowcount</pref></li>
94599463
<li><pref>aria-rowindex</pref></li>
9464+
<li><pref>aria-rowindextext</pref></li>
94609465
<li><pref>aria-rowspan</pref></li>
94619466
<li><pref>aria-setsize</pref></li>
94629467
</ul>
@@ -9826,7 +9831,7 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
98269831
<div class="property" id="aria-colindex">
98279832
<pdef>aria-colindex</pdef>
98289833
<div class="property-description">
9829-
<p>Defines an <a>element's</a> column index or position with respect to the total number of columns within a <rref>table</rref>, <rref>grid</rref>, or <rref>treegrid</rref>. See related <pref>aria-colcount</pref> and <pref>aria-colspan</pref>.</p>
9834+
<p>Defines an <a>element's</a> column index or position with respect to the total number of columns within a <rref>table</rref>, <rref>grid</rref>, or <rref>treegrid</rref>. See related <pref>aria-colindextext</pref>, <pref>aria-colcount</pref>, and <pref>aria-colspan</pref>.</p>
98309835
<p>If all of the columns are present in the <abbr title="Document Object Model">DOM</abbr>, it is not necessary to set this <a>attribute</a> as the <a>user agent</a> can automatically calculate the column index of each cell or <rref>gridcell</rref>. However, if only a portion of the columns is present in the <abbr title="Document Object Model">DOM</abbr> at a given moment, this attribute is needed to provide an explicit indication of the column of each cell or gridcell with respect to the full table.</p>
98319836
<p>Authors MUST set the <span>value</span> for <pref>aria-colindex</pref> to an integer greater than or equal to 1, greater than the <pref>aria-colindex</pref> value of any previous elements within the same row, and less than or equal to the number of columns in the full table. For a cell or gridcell which spans multiple columns, authors MUST set the value of <pref>aria-colindex</pref> to the start of the span.</p>
98329837
<p>If the set of columns which is present in the <abbr title="Document Object Model">DOM</abbr> is contiguous, and if there are no cells which span more than one row or column in that set, then authors MAY place <pref>aria-colindex</pref> on each row, setting the value to the index of the first column of the set. Otherwise, authors SHOULD place <pref>aria-colindex</pref> on all of the children or <a>owned</a> elements of each row.</p>
@@ -9938,6 +9943,42 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
99389943
</tbody>
99399944
</table>
99409945
</div>
9946+
<div class="property" id="aria-colindextext">
9947+
<pdef>aria-colindextext</pdef>
9948+
<div class="property-description">
9949+
<p>Defines a human readable text alternative of <pref>aria-colindex</pref>. See related <pref>aria-rowindextext</pref>.</p>
9950+
<p>Authors SHOULD only use <code>aria-colindextext</code> when the provided or calculated value of <pref>aria-colindex</pref> is not meaningful or does not reflect the displayed index, as is the case with spreadsheets and chess boards.</p>
9951+
<p>Authors SHOULD NOT use <code>aria-colindextext</code> as a replacement for <pref>aria-colindex</pref> because some assistive technologies rely upon the numeric column index for the purpose of keeping track of the user's position or providing alternative table navigation.</p>
9952+
<p class="note">Unlike <pref>aria-colindex</pref>, <code>aria-colindextext</code> is not a supported property of <rref>row</rref> because user agents have no way to reliably calculate <code>aria-colindextext</code> for the purpose of exposing its value on the <rref>cell</rref> or <rref>gridcell</rref>.</p>
9953+
</div>
9954+
<table class="property-features">
9955+
<caption>Characteristics:</caption>
9956+
<thead>
9957+
<tr>
9958+
<th scope="col">Characteristic</th>
9959+
<th scope="col">Value</th>
9960+
</tr>
9961+
</thead>
9962+
<tbody>
9963+
<tr>
9964+
<th class="property-related-head" scope="row">Related Concepts:</th>
9965+
<td class="property-related"> </td>
9966+
</tr>
9967+
<tr>
9968+
<th class="property-applicability-head" scope="row">Used in Roles:</th>
9969+
<td class="property-applicability">Placeholder</td>
9970+
</tr>
9971+
<tr>
9972+
<th class="property-descendants-head" scope="row">Inherits into Roles:</th>
9973+
<td class="property-descendants">Placeholder</td>
9974+
</tr>
9975+
<tr>
9976+
<th class="property-value-head" scope="row">Value:</th>
9977+
<td class="property-value"><a href="#valuetype_integer">string</a></td>
9978+
</tr>
9979+
</tbody>
9980+
</table>
9981+
</div>
99419982
<div class="property" id="aria-colspan">
99429983
<pdef>aria-colspan</pdef>
99439984
<div class="property-description">
@@ -11681,7 +11722,7 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
1168111722
<div class="property" id="aria-rowindex">
1168211723
<pdef>aria-rowindex</pdef>
1168311724
<div class="property-description">
11684-
<p>Defines an <a>element's</a> row index or position with respect to the total number of rows within a <rref>table</rref>, <rref>grid</rref>, or <rref>treegrid</rref>. See related <pref>aria-rowcount</pref> and <pref>aria-rowspan</pref>.</p>
11725+
<p>Defines an <a>element's</a> row index or position with respect to the total number of rows within a <rref>table</rref>, <rref>grid</rref>, or <rref>treegrid</rref>. See related <pref>aria-rowindextext</pref>, <pref>aria-rowcount</pref>, and <pref>aria-rowspan</pref>.</p>
1168511726
<p>If all of the rows are present in the <abbr title="Document Object Model">DOM</abbr>, it is not necessary to set this <a>attribute</a> as the <a>user agent</a> can automatically calculate the index of each row. However, if only a portion of the rows is present in the <abbr title="Document Object Model">DOM</abbr> at a given moment, this attribute is needed to provide an explicit indication of each row's position with respect to the full table.</p>
1168611727
<p>Authors MUST set the <span>value</span> for <pref>aria-rowindex</pref> to an integer greater than or equal to 1, greater than the <pref>aria-rowindex</pref> value of any previous rows, and less than or equal to the number of rows in the full table. For a cell or gridcell which spans multiple rows, authors MUST set the value of <pref>aria-rowindex</pref> to the start of the span.</p>
1168711728
<p>Authors SHOULD place <pref>aria-rowindex</pref> on each row. Authors MAY also place <pref>aria-rowindex</pref> on all of the children or <a>owned elements</a> of each row.</p>
@@ -11778,6 +11819,42 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
1177811819
</tbody>
1177911820
</table>
1178011821
</div>
11822+
<div class="property" id="aria-rowindextext">
11823+
<pdef>aria-rowindextext</pdef>
11824+
<div class="property-description">
11825+
<p>Defines a human readable text alternative of <pref>aria-rowindex</pref>. See related <pref>aria-colindextext</pref>.</p>
11826+
<p>Authors SHOULD only use <code>aria-rowindextext</code> when the provided or calculated value of <pref>aria-rowindex</pref> is not meaningful or does not reflect the displayed index, as can be seen in the game Battleship.</p>
11827+
<p>Authors SHOULD NOT use <code>aria-rowindextext</code> as a replacement for <pref>aria-rowindex</pref> because some assistive technologies rely upon the numeric row index for the purpose of keeping track of the user's position or providing alternative table navigation.</p>
11828+
<p>Authors SHOULD place <code>aria-rowindextext</code> on each row. Authors MAY also place <code>aria-rowindextext</code> on all of the children or <a>owned elements</a> of each row.</p>
11829+
</div>
11830+
<table class="property-features">
11831+
<caption>Characteristics:</caption>
11832+
<thead>
11833+
<tr>
11834+
<th scope="col">Characteristic</th>
11835+
<th scope="col">Value</th>
11836+
</tr>
11837+
</thead>
11838+
<tbody>
11839+
<tr>
11840+
<th class="property-related-head" scope="row">Related Concepts:</th>
11841+
<td class="property-related"> </td>
11842+
</tr>
11843+
<tr>
11844+
<th class="property-applicability-head" scope="row">Used in Roles:</th>
11845+
<td class="property-applicability">Placeholder</td>
11846+
</tr>
11847+
<tr>
11848+
<th class="property-descendants-head" scope="row">Inherits into Roles:</th>
11849+
<td class="property-descendants">Placeholder</td>
11850+
</tr>
11851+
<tr>
11852+
<th class="property-value-head" scope="row">Value:</th>
11853+
<td class="property-value"><a href="#valuetype_integer">string</a></td>
11854+
</tr>
11855+
</tbody>
11856+
</table>
11857+
</div>
1178111858
<div class="property" id="aria-rowspan">
1178211859
<pdef>aria-rowspan</pdef>
1178311860
<div class="property-description">
@@ -12457,6 +12534,7 @@ <h2>Interface Mixin <dfn>AriaAttributes</dfn></h2>
1245712534
attribute DOMString? ariaChecked;
1245812535
attribute DOMString? ariaColCount;
1245912536
attribute DOMString? ariaColIndex;
12537+
attribute DOMString? ariaColIndexText;
1246012538
attribute DOMString? ariaColSpan;
1246112539
attribute FrozenArray&lt;Element&gt;? ariaControlsElements;
1246212540
attribute DOMString? ariaCurrent;
@@ -12488,6 +12566,7 @@ <h2>Interface Mixin <dfn>AriaAttributes</dfn></h2>
1248812566
attribute DOMString? ariaRoleDescription;
1248912567
attribute DOMString? ariaRowCount;
1249012568
attribute DOMString? ariaRowIndex;
12569+
attribute DOMString? ariaRowIndexText;
1249112570
attribute DOMString? ariaRowSpan;
1249212571
attribute DOMString? ariaSelected;
1249312572
attribute DOMString? ariaSetSize;
@@ -12511,6 +12590,7 @@ <h2>ARIA Attribute Reflection</h2>
1251112590
<tr><td><dfn>ariaChecked</dfn></td><td><sref>aria-checked</sref></td></tr>
1251212591
<tr><td><dfn>ariaColCount</dfn></td><td><pref>aria-colcount</pref></td></tr>
1251312592
<tr><td><dfn>ariaColIndex</dfn></td><td><pref>aria-colindex</pref></td></tr>
12593+
<tr><td><dfn>ariaColIndexText</dfn></td><td><pref>aria-colindextext</pref></td></tr>
1251412594
<tr><td><dfn>ariaColSpan</dfn></td><td><pref>aria-colspan</pref></td></tr>
1251512595
<tr><td><dfn>ariaControlsElements</dfn></td><td><pref>aria-controls</pref></td></tr>
1251612596
<tr><td><dfn>ariaCurrent</dfn></td><td><sref>aria-current</sref></td></tr>
@@ -12542,6 +12622,7 @@ <h2>ARIA Attribute Reflection</h2>
1254212622
<tr><td><dfn>ariaRoleDescription</dfn></td><td><pref>aria-roledescription</pref></td></tr>
1254312623
<tr><td><dfn>ariaRowCount</dfn></td><td><pref>aria-rowcount</pref></td></tr>
1254412624
<tr><td><dfn>ariaRowIndex</dfn></td><td><pref>aria-rowindex</pref></td></tr>
12625+
<tr><td><dfn>ariaRowIndexText</dfn></td><td><pref>aria-rowindextext</pref></td></tr>
1254512626
<tr><td><dfn>ariaRowSpan</dfn></td><td><pref>aria-rowspan</pref></td></tr>
1254612627
<tr><td><dfn>ariaSelected</dfn></td><td><sref>aria-selected</sref></td></tr>
1254712628
<tr><td><dfn>ariaSetSize</dfn></td><td><pref>aria-setsize</pref></td></tr>

0 commit comments

Comments
 (0)