-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nr. 2: Problem with 2 statements in 1 SC: 3.3.1: Error Identification #1774
Comments
I asked some questions in the discussion feature of Github 23 days ago (at the recommendation of Alastair to use that feature) around this SC 3.3.1 but have had to response. #1726 My question is related to the wording of errors and whether they need to indicate that something is wrong rather than restarting what to do. I've pasted it below: Say you have a field like the below that indicates required state: required required If the text "please enter your name" were in red, would this make it more of an error under SC 1.4.1 as red makes it obvious to some there is an issue? |
Yes, if the message is displayed at the field. |
I think the questions are superfluous if you read 3.3.1 the way I do (the question, of course, would be whether 3.3.1 is meant that way):
is the short version of : If an input error is automatically detected,
|
An example might be a First name field that has a label of first name. When the error appears for SC 3.3.1it adds some extra text below the field that is associated as says "Enter your first name" - basically restating the field without clearly saying there was something wrong. What I'm trying to figure out is if it needs to say that something was wrong - for example, "The first name field was left blank" or whether it needs to use some specific wording such as "invalid" or "error". |
So the exact requirement is:
Sixth Questions: 1.2a. When a hint is enough, like an "asterisks" (see example in Understanding) does the explanation of the "asterisks" also need to be programmatically linked? (or no explanation needed?) So, is the text "all fields with an 'asterisks' are required BUT a double 'asterisk' means the field is in error" enough by only being placed at the top of a form? (no programmatic association) If the top of the form is enough, why do the others need to be "programmatically linked" to explain what happened where, if the text itself already must mention which item is in error? (maybe not requiring "2. All of the above "must be programmatically linked""?) 1.2b What counts as a "hint"? A double 'asterisks' only? (I have never seen them!) Others? @mraccess77 |
Ow yeh, when using a visual icon AND Aria-invalid, the item is NOT identified in text !!! (it serves as an equivalent for AT users, but technically it's not text provided by the author, unless we stretch what text is and count attributes as text too, which direction I do not think we should go!) |
x-ref #1651 |
In my opinion this is not relevant for SC 3.3.1, but for 1.3.1 |
agree, programmatic linking is 1.3.1, not related to 3.3.1. i thought i had that as well in my PR #1651 but it appears not. will backfill (edit: done (https://github.com/w3c/wcag/pull/1651/files#diff-7ab9dda99450b42951e62a63fb7f6fff1783fcb67381d09992ff71ad5275d1d4R78) |
No. For example, an error message could just be
Agreed, pretty wide latitude on this. So 3.3.1 is requiring that there be explicit identification, but the visual formatting of that identification is very open. (And yes, they are separate things.) |
I think there should be a clear distinction between instructions and error messages. My understanding is that SC 3.3.1 asks for error messages and not instructions (after submit). So, if there are only instructions or browser messages like "This field is mandatory" it is a fail.
A message "Please enter your name" is an instruction and not an error message. It does not clearly communicate there is an error present. For me, this is a fail. You can use this as an addition to an error message but not as a replacement of an error message.
Just using color to indicate it is an error message is nog sufficient in my opinion. You could use an icon (with an appropriate alt text), but not color alone. Instead of "Please enter your name" I would use something like "The field 'Name' was left blank" or "The field 'name' is empty". Of course you could add an additional instruction. Something link "The field 'name' is empty. Please enter your name". So, for me an instruction message after a submit is not a good error message. Instructions ar only good or usefull as an addition to, in basic, a real error messages (that tells you what went wrong in an explicit way and not indirect). I wonder if my interpretation above is the right one. |
I agree that an error needs to indicate that something is wrong. It doesn't need to specifically use the word error - but it needs to indicate more than "enter your name" it needs to say that the name was missing, empty, or the field is required, or that there was an error and what the error was. |
I think we might be getting lost in the nuances of subjectivity, language, and tone (which is always fun for a binary pass/fail SC). some people will say "Please enter your name" is a very polite, albeit slightly indirect, way of indicating there was an error and instruction on how to fix it. others clearly disagree. and I doubt we'll find some kind of definitive way of clearly explaining, in unambiguous language, where to draw the line here (not even going to go down the path of potential cultural differences, different audiences, nuance of different languages, etc) |
I understand that this is a slippery slope to walk on. But we do need some sort of guideline on how to deal with this. Our rule of thumb is the following: If it is something that could have been there before the form was submitted (as is the case with instructions) it is not really an error message. So something like "Please enter your name" is something that can be shown before submitting. It is a good label or instruction (as for 3.3.2). But something like "The name field is empty" is not logical to put in before submitting the form. For us, even a message like "This field is required" or "The name field is required" is not a real error message, because it is an instruction that could have been placed before submitting the form (and usually already is either in text or with an asteriks character). This is for us the easiest way to instruct all our testers to make the same call on pass or fail. |
So the SC is in 2 pieces:
The AND suggests you need to do 2 things:
First Question:
DOES the describing of the error in text already identifies the item?
Second Question:
If the text description and identification are separate things, what counts as 'identification' from a visual perspective?
Third Question
Is the third example NOT correct, merging the two statements into 1 requirement?
All is clear TILL THE NOTE... because it states:
So now an example from Deque Demo pages:
https://dequeuniversity.com/demo/dream
Fourth Question
Is the first text you see "Please enter a station" enough for identifying the input by describing the error if programmatically also connected to the input?
The text was updated successfully, but these errors were encountered: