View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003479 | HTML & PERL | Bug Report | public | 2020-11-13 17:22 | 2020-12-29 00:35 |
Reporter | Payuri | Assigned To | |||
Priority | low | Severity | trivial | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Firefox | OS | Linux | ||
Summary | 0003479: Empty alt tag hides broken image placeholder | ||||
Description | On the forums and blogposts image tags have attribute alt="" which prevents clients from displaying placeholder image when image fails to load (due to src leading to inexistent resource or client blocking 3rd party resources). Expected behaviour: if image fails to load client should display placeholder image or image url | ||||
Steps To Reproduce | 1. Go to any post with an image (for example: https://anidb.net/forum/thread/98314) 2. Disable external resources or change image src to inexistent resource There is nothing to indicate that there should be an image | ||||
Tags | No tags attached. | ||||
|
personally i would classify that as really retarded on the browsers side of things. the alt attribute is _required_ according to the html spec. especially searchengines scream bloody murder if you drop it. usually we set the value of the alt attribute to the name of the entity shown in the image. for images displayed in the forum that is not really possible as we don't know what it shows. using some dumb "here be dragons" value seems ridiculous to me. seems like an empty alt attribute is interpreted as "do not show anything" which is ... ok i guess, but the placeholer image on load issues is only shown if the mandatory alt attribute is missing? the fuck? i guess i will have to set something in the place of an empty aqlt attribute. the url i guess *shrug* |
|
The specification states that "the alt attribute must be specified and its value must not be empty" except for specific cases. In case where image contents are not known due to being provided by user it says that the alt attribute can be omitted if img is in figure with figcaption or img has a title attribute[1]. Personally I think providing url in the alt attribute would be preferable – maybe prefixed with "User supplied image" for accessibility but that seems kind of redundant. [1] https://html.spec.whatwg.org/multipage/images.html#unknown-images |