- From: Mike Elledge <melledge@yahoo.com>
- Date: Tue, 7 Jun 2016 18:09:06 +0000 (UTC)
- To: WCAG WG <w3c-wai-gl@w3.org>
Received on Tuesday, 7 June 2016 18:09:35 UTC
Hi All-- Is it compliant to use an aria role in place of a label for a search field? This is the code: <form role="search" class="inLine search" > <input type="text" /> <input type="submit" value="Search" /> </form> I want to identify search as a region, but avoid the redundancy of aria-label or a "search" label hidden off-screen. The submit button identifies the purpose visually, and screen readers announce it aurally. I've considered adding a placeholder attribute, but the consensus is that it is not compliant since it doesn't create an association between the label and input field (even though it is reflected that way in the DOM). What do you think, is this appropriate? Thanks! Mike
Received on Tuesday, 7 June 2016 18:09:35 UTC