On 21 Apr 2021, at 11:04, Jean-Pierre Rivière <jn.pierr...@gmail.com> wrote:
As far as WCAG 2.1 is concerned, a "select" elements should better have an "id" tag in order that a "label" element could point to it witg its "for" tag. Alternatives are a "title" tag or WAI-ARIA roles for the "select" element.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ed0a3873-8007-4e15-932d-b99811308884n%40googlegroups.com.
Your tw code renders an html code like<label>This is my label<select><option value="one">one</option><option (...) </option></select></label>https://www.w3.org/WAI/WCAG21/Techniques/html/H65 provides an alternative with the "title" tag but neither edit-text widget nor button widget provide a way to get a title tag. This solution would be a little out of touch (aka not very acceptable) if you provide a label element that fails only because of a lack of "id" tag.on the contrary we are clearly within the wrong as shown in https://www.w3.org/WAI/WCAG21/Techniques/failures/F68
Sometimes, a user has to select one or more items. This example shows such an interface.
<label>
Select the songs from that you would like on your Act II Mix Tape:
<select multiple required name="act2">
<option value="s1">It Sucks to Be Me (Reprise)
<option value="s2">There is Life Outside Your Apartment
<option value="s3">The More You Ruv Someone
<option value="s4">Schadenfreude
<option value="s5">I Wish I Could Go Back to College
<option value="s6">The Money Song
<option value="s7">School for Monsters
<option value="s8">The Money Song (Reprise)
<option value="s9">There's a Fine, Fine Line (Reprise)
<option value="s10">What Do You Do With a B.A. in English? (Reprise)
<option value="s11">For Now
</select>
</label>If we can't get WCAG conformity witg tiddlywiki, this mean the law will forbid any application in tw technology to be used as a web app for any major public (the public, corporate app, etc). This would really be a shame.
Is there really no way to properly handle id tags? Could we imagine a blue sky effort to imagine potential solutions? Where and how could interested parties be technically briefed and reports their own works about it afterwards?
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/cd8c9c6e-39d9-4b8b-9b31-d448cc7b5d03n%40googlegroups.com.
If the for attribute is not specified, but the label element has a labelable element descendant, then the first such descendant in tree order is the label element's labeled control. »
As for what a labelable element is, I quote https://html.spec.whatwg.org/multipage/forms.html#category-label
« Some elements, not all of them form-associated, are categorized as labelable elements. These are elements that can be associated with a label element.