WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: aria-describedby Id's

for

Number of posts in this thread: 2 (In chronological order)

From: Greg Gamble
Date: Fri, May 03 2013 8:56AM
Subject: aria-describedby Id's
No previous message | Next message →

When using an aria-describedby property tag, does the associated id need to point to an available control.

For instance, if you have an aria-describedby with an id called 'errorMsg' ( aria-describedby='errorMsg' ), does a control called 'errorMsg' need to be on the page?

Greg Gamble
Information Services

From: Angela French
Date: Fri, May 03 2013 9:26AM
Subject: Re: aria-describedby Id's
← Previous message | No next message

The described-by is in the control. The id it references is in the message.

<div id="error6" class="errors">Error: Please enter a valid date.</div>
<div>
<label for="test6">Date: </label>
<input type="text" name="test" id="test6" aria-describedby="error6 instructs6" />

>