WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: using 'hidden' for data table

for

From: Chris Heilmann
Date: Sep 15, 2004 9:36AM




Well, 0 is a value, and not "nothing". If you really want to get rid of
the zeros, you could either apply a class to each of those cells and move
them out via (accessible) CSS, or use DOM to make them "pretty", something
like:

window.onload=function()
{
for(var i=0;i<document.getElementsByTagName('td').length;i++)
{
if(parseInt(document.getElementsByTagName('td')[i].innerHTML)==0)
{
document.getElementsByTagName('td')[i].innerHTML=' ';
}
}
}

Which IMHO is overkill.


> Apologies for thread creep, but this topic so similar to the current:
>
> We have some web-based tables of numbers, wherein a healthy percentage of
> the
> cells' value is 0. To draw visual attention to the non-0 cells, some have
> suggested blanking out the 0's, so those cells are empty. Is there an
> accessibility argument against doing this? It would seem so, as the
> concept
> of "blank meaning 0" may not be obvious via screen reading or other
> alternative
> types of access.
>
> Any opinions welcome!
>
> -- Randy
>
>> I need more information about the situation you describe. If
>> you mean the cell at column 1 row 1 is blank that is no problem. No need
>> for id or text. Please provide more information.
>
> ----
> To subscribe or unsubscribe, visit http://www.webaim.org/discussion/
>


--
Chris Heilmann
The mighty pen: http://icant.co.uk/
Learn to let go! http://ltlg.icant.co.uk
Binaries: http://www.onlinetools.org/