Missing alt text on img tags inside the picture element is undetected

Created on 16 July 2024, 4 months ago
Updated 17 July 2024, 4 months ago

Problem/Motivation

When using the picture element, the module or underlying library does not detect missing alt text in the fallback img element.

Steps to reproduce

<picture>
                  <source srcset="/sites/default/files/styles/related_teaser_small/public/foobar.png?itok=gZu_oP2K 1x" media="all and (min-width: 768px)" type="image/png" width="342" height="230">
              <source srcset="/sites/default/files/styles/related_teaser/public/foobar.png?itok=eA_els-L 1x" media="all and (min-width: 524px)" type="image/png" width="440" height="296">
              <source srcset="/sites/default/files/styles/related_teaser/public/foobar.png?itok=eA_els-L 1x" media="all and (max-width: 523px)" type="image/png" width="440" height="296">
                  <img loading="eager" src="/sites/default/files/styles/related_teaser_small/public/foobar.png?itok=gZu_oP2K" width="342" height="230">

 </picture>
πŸ› Bug report
Status

Closed: works as designed

Version

2.1

Component

Bugs

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024