- From: James Craig <jcraig@apple.com>
- Date: Wed, 30 May 2012 23:19:33 -0700
- To: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
- Cc: PFWG Public Comments <public-pfwg-comments@w3.org>
Understood. Thanks for the comments. Copying your response back to the public comments alias to make sure this clarification gets addressed with the rest of your comment. Cheers. On May 30, 2012, at 11:08 PM, Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com> wrote: > On Thu, May 31, 2012 at 6:30 AM, James Craig <jcraig@apple.com> wrote: >> Is there another way to use an IDREF to point outside the document? > > Sorry for the confusion: I didn't mean to imply it could. I was just > trying distinguish the cases of "exists" (at time of query) and "in > the document" (which might not yet be fully parsed). > >>> WAI-ARIA should clarify the text computation algorithm to make it >>> clear whether it is talking about the @aria-labelledby property being >>> set to an empty list or about the text alternative calculated via its >>> list. For example, with the markup: >>> >>> <label for="i">Name</label><input id="i" aria-labelledby="e"><div id="e"></div> >>> >>> Is the accessible name of the input "Name" or the the empty string? >> >> The empty string. aria-labelledby trumps the native host language label mechanism, which in this case is [label@for/input@id] > > It might be useful to include an example along those lines. > >> As James Nurthen mentioned in the thread: http://lists.w3.org/Archives/Public/w3c-wai-ig/2012AprJun/0146.html >>>> It reads "if aria-labelledby or aria-label is empty or undefined". It does not mention anything about aria-labelledby pointing to a valid element which contains no content. >> >> I agree that we could clarify that prose a bit though. Perhaps "If *the attribute value of* aria-labelledby or aria-label is empty or undefined…" > > Maybe that would be better, but … > > * aria-labelledby=" " is not an empty or undefined attribute value, > but should arguably be ignored for text alternative computation. > (Maybe define empty to imply whitespace trimming?) > > * DOM talks about "null" not "undefined" here > http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-element-getattribute > > -- > Benjamin Hawkes-Lewis >
Received on Thursday, 31 May 2012 06:20:15 UTC