W3C home > Mailing lists > Public > public-html@w3.org > January 2012

Re: Revert Request

From: Charles Pritchard <chuck@jumis.com>
Date: Tue, 31 Jan 2012 14:29:01 -0800
Message-ID: <4F286B2C.9000505@jumis.com>
To: Jonas Sicking <jonas@sicking.cc>
CC: Laura Carlson <laura.lee.carlson@gmail.com>, Silvia Pfeiffer <silviapfeiffer1@gmail.com>, Sam Ruby <rubys@intertwingly.net>, Paul Cotton <Paul.Cotton@microsoft.com>, Maciej Stachowiak <mjs@apple.com>, HTML WG <public-html@w3.org>
On 1/30/12 8:47 PM, Jonas Sicking wrote:
> So what is the most intuitive way to add a hidden
> description/summary/label? I would think "create a
> description/summary/label and then make it hidden".
>
> I.e. you'd write markup like:
>
> <label for=myinput>Label here</label><input id=myinput>
>
> and then hide the stuff that you want to only expose to AT:
> <label hidden for=myinput>Label here</label><input id=myinput>
>
> Similarly:
> <table aria-describedby="desc">...</table>
> <div hidden id=desc>Description here</div>

While I disagree with this method, I want to point out one little irking 
unresolved issue.
<input type="file" hidden> is becoming a real thing.

I don't think it's a big issue, but since a11y peoples are on this 
thread, I do want to point it out.
This is how I'd handle it, in my current code.

<button onclick="file.click()" role="file button">Add files</button>
<input type="file" id="file" hidden />

-Charles
Received on Tuesday, 31 January 2012 22:29:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:29 UTC