WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: The aria-labelledby attribute must point to an elementin the same document.

for

From: Greg Gamble
Date: May 14, 2013 4:34PM


My expectations? Just that a user be notified of a form error. My skills on hearing this from NVDA are either extremely lacking or I'm not doing it right.

My starting form markup is good ... that I know. It's when a user is filling out a form and either enters a bad value and/or does not enter a required one, and gets a submission error ... do they see it or are they even notified of it?

It was my understanding that when an error message is displayed it needed to be tied to the input field that caused the error. That is why I have role='alert' on the error message to get the attention, and an aria-labelledby='errormessageID' on the input field to tie the now visible error message to the input field.