This test maps to 1.1.1 Non-text Content (Level: A). There are two main cases used in the test:
img
with no src
- has no image so can't have non-text content
- an empty
div role=img
also doesn't have non-text content
There are no tests for the main use case of img
with src
and div role=img
containing content. At best the test cases are testing edge conditions, and in some cases are doing the wrong thing because HTML specifies img
with no src
should not be rendered - see #1124 (comment)