E-mail List Archives

Re: Foreign:Re: textbox in table cell


From: Moore, Michael
Date: Mar 27, 2008 8:00AM

Chris Hoffman wrote:

> Is that a limitation of the assistive technologies' capabilities?
> Because it certainly isn't a violation of the HTML4 spec:
> "Each LABEL element is associated with exactly one form control."
> but:
> "More than one LABEL may be associated with the same control by
> creating multiple references via the for attribute."

Patrick Lauke replied:

I'd say it's a limitation of current AT...to a certain extent, as the
spec doesn't actually clarify the use cases for multiple labels. Does it
allow multiple labels under the tacit understanding that those labels
would really all mean the same thing, or does it intend to offer a
mechanism for situations like the one discussed here? It's unclear...and
therefore AT is inconsistent in that regard.

Mike Moore adds:

Even if AT supported multiple labels for a single input it would not
resolve the situation described. In this situation, placing data in a
table, the labels (table headers) and the inputs have a many to many
relationship. Each label/header would need to be associated with all of
the inputs in the corresponding row or column. This is not possible due
to the need for unique ids on the inputs and the inability to place
either multiple for attributes, or multiple values within a single for
attribute in a label.

The example that Jukka posted on this thread, where the inputs were
placed within fieldsets with legends, would be the "ideal" solution in
terms of web standards and accessibility. Unfortunately though,
customer/client/manager demands frequently dictate the visual layout of
the page and like it or not we are frequently required to create web
interfaces/forms that mimic the appearance of paper forms or
spreadsheets. We can advise, but unless we own the site we usually
cannot dictate the solution.

Mike Moore