W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2012

Re: aria alternative for fieldset legend

From: Jared Smith <jared@webaim.org>
Date: Mon, 22 Oct 2012 08:40:43 -0600
Message-ID: <CAMfKODD+FrWGK9qN5VjwwcNQA6__4zBcTO0qCTZVA_GfzR=9gg@mail.gmail.com>
To: WCAG <w3c-wai-gl@w3.org>
If a higher level description of the radio button group is not
present, then there's no need for a fieldset/legend. As you note, all
would be at the same disadvantage.

If a visible 'legend' is present and fieldset/legend markup is not
possible, you could use the ARIA radiogroup role with a label that
references this legend text. This should function identical to its
HTML equivalent.

<p id="question">I am the question text?</p>
<div role="radiogroup" aria-labelledby="question">
<input ... >
...
</div>

Jared
Received on Monday, 22 October 2012 14:41:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 22 October 2012 14:41:12 GMT