1 | | Adding `accessibility` focus and `close as wontfix` suggestion given this it the way it should work: the alternative text of an image should never be defined globally but rather independently on each occurrence, since this alt text could be different for each occurence of the image. Sometimes, an image can be illustrative (empty alt text needed) and sometimes it can convey a meaning (descriptive alt text needed). |
2 | | Also, the meaning can of course be different depending on the context. For instance, when the image is directly wrapped by a link, the alt text must describe the target of the link, not the image. |
| 1 | Hello and welcome to WordPress Core Trac! |
| 2 | |
| 3 | Adding `accessibility` focus and `close as wontfix` suggestion given this it the way it should work: the alternative text of an image should never be defined globally but rather independently on each occurrence, since this alt text could be different for each occurence of the image. |
| 4 | |
| 5 | Sometimes, an image can be illustrative (empty alt text needed) and sometimes it can convey a meaning (descriptive alt text needed). |
| 6 | |
| 7 | Also, the meaning can of course be different depending on the context. |
| 8 | |
| 9 | For instance, when the image is directly wrapped by a link, the alt text must describe the target of the link, not the image. |
| 10 | |
| 11 | To summarize, this is done on purpose, for the sake of accessibility. |