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
Test document 2 fails WCAG 1.3.1 test 2 (Space characters are used for formatting purpose). This is technically correct. There are no false positives: the test correctly identifies places where spaces have no function and line breaks are used to create vertical space.
However, you dould argue that it's a bit over the top to generate an error for a single or double space directly after a full stop. It's true that this is bad practice, but it generates a lot of errors which are not considered very important by people who use screen readers (which usually ignore spaces after a full stop).
My proposal for implementing this test would be:
Ignore single or double spaces directly after a full stop. Do not generate an error in this case.
Generate errors for 3 or more consecutive spaces.
Generate errors for repeated line breaks following empty lines, or lines with only spaces.
The text was updated successfully, but these errors were encountered:
Thanks for the answer, this sounds good. My question is: why does the algorithm still seem to point to single spaces after a line end with full stop ('. ')? This appears to occur in test document 2.
@jzuidweg Hi, let me answer your question)
The single spaces you're referring to, are not actually single (they look like big single spaces, but if you look at another case with repeating spaces you'll see, that actual single spaces are narrower than spaces in question), so really there are 3 successive spaces and that's why algorithm points to them.
Test document 2 fails WCAG 1.3.1 test 2 (Space characters are used for formatting purpose). This is technically correct. There are no false positives: the test correctly identifies places where spaces have no function and line breaks are used to create vertical space.
However, you dould argue that it's a bit over the top to generate an error for a single or double space directly after a full stop. It's true that this is bad practice, but it generates a lot of errors which are not considered very important by people who use screen readers (which usually ignore spaces after a full stop).
My proposal for implementing this test would be:
The text was updated successfully, but these errors were encountered: