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
But I don’t recall testing the logic for generic/none role due to empty alt text (it may be in HTML-AAM) and I’m fairly certain we don’t have tests for non-empty white space variants like alt=" " and other values like TAB, CRLF, etc, which come out of CMS templates sometimes.
Also interior non-space white space should be normalized too.
The text was updated successfully, but these errors were encountered:
cookiecrook
changed the title
Need tests for non-empty white space alt values
Need tests for non-empty white space only alt values, and interior white space values
Mar 23, 2024
Correct, though there may be a sufficient requirement in the spec to trim a non-empty whitespace string down to the same equivalent empty string. In any case, I'd expect whitespace-only alt text to be an author error. Proposed tests are primarily to ensure all engines are doing the same thing with the author error.
We have some image alt tests in this file:
https://github.com/web-platform-tests/wpt/blob/master/accname/name/comp_host_language_label.html
But I don’t recall testing the logic for generic/none role due to empty alt text (it may be in HTML-AAM) and I’m fairly certain we don’t have tests for non-empty white space variants like
alt=" "
and other values like TAB, CRLF, etc, which come out of CMS templates sometimes.Also interior non-space white space should be normalized too.
The text was updated successfully, but these errors were encountered: