Re: Action-1293 Proposal

On 2015-03-18 1:38 PM, Joanmarie Diggs wrote:
> Hi all.
>
> I'm going through all the messages again as I work on a branch for group
> review.
>
> Regarding this:
>
> On 03/10/2015 03:16 PM, Dominic Mazzoni wrote:
>
>> >I understand there are cases where it's necessary to put aria-rowcount
>> >on each cell,
> What is such a use case? I think the index properties belong on the
> cell; at the moment, I cannot think of a case where the count properties
> do. And this:
>
>> >but that's a lot of bloat to add it to every cell most of
>> >the time. Can we allow it to be placed on the row or table/grid element
>> >itself and be inherited, for example:
>> >
>> ><table role="grid" aria-colcount="16">
>> >   <tr role="row">
>> >      <td role="gridcell" aria-colindex="5">A</td>
>> >      <td role="gridcell" aria-colindex="6">B</td>
>> >     <td role="gridcell" aria-colindex="7">C</td>
>> >     <td role="gridcell" aria-colindex="8">D</td>
>> >   </tr>
>> >...
>> ></table>
> Seems reasonable to me.
>
> --joanie

If @aria-colindex declares the actual index of the columns present in the DOM, and there are no gaps, then all that is needed is the first index.  The rest are implied as sequential:

<table role="grid" aria-colcount="16">
     <tr role="row">
        <td role="gridcell" aria-colindex="5">A</td>
        <td role="gridcell">B</td>
        <td role="gridcell">C</td>
       <td role="gridcell">D</td>
     </tr>
  ...
</table>


B, C, and D cells have column indices of 6, 7, and 8, respectively.

That would save space.  Is it too much work for the browser to calculate?
-- 
;;;;joseph.

'Array(16).join("wat" - 1) + " Batman!"'
            - G. Bernhardt -

Received on Wednesday, 18 March 2015 19:24:12 UTC