You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a control has no value but has a required attribute (input required, textarea required); or, more complicated rules for select elements and controls in radio button groups, as specified in their sections.
I am totally confused by what this actually means.
Constraint validation: If the element has its required attribute specified, and either none of the option elements in the select element's list of options have their selectedness set to true, or the only option element in the select element's list of options with its selectedness set to true is the placeholder label option, then the element is suffering from being missing.
I am trying to understand if
A placeholder selected by default is valid HTML <option disabled selected>Please select</option>
If there is a valid method where the first option is not visible and only becomes visible when the Listbox is expanded using native HTML.
The text was updated successfully, but these errors were encountered:
"Suffering from being missing" is about client-side form validation, it doesn't seem to be related to your problem. I don't think there's anything forbidding disabling and selecting the first option element. You could leave it blank to make it invisible I suppose, although I'm not sure what the AT experience for that would be...
@annevk Thanks for the tip on Suffering from being missing relation to client-side validation.
I noticed that leaving the first option empty affects accessibility across browsers and screen readers. On desktop, using Chrome and JAWS 2022 or NVDA, there is a problem with the wrong number of available options announced. I found that adding aria-hidden true fixes this particular issue.
This is more problematic using Voiceover on iOS and TalkBack on Android, because each option is announced as a Button. If an option has no text then it is missing an accessible name.
The HTML Spec for Option mentions 'Suffering from being missing'. The description for 'Suffering from being missing' is:
I am totally confused by what this actually means.
The term is mentioned in the placeholder-label-option description.
I am trying to understand if
<option disabled selected>Please select</option>
The text was updated successfully, but these errors were encountered: