NextINpact / Next

18 stars 0 forks source link

[Flux RSS] src manquant sur les images avec srcset #351

Closed fmunch closed 3 months ago

fmunch commented 6 months ago

Dans le flux RSS on trouve des éléments img déclarés ainsi :

<figure class="wp-block-image size-large">
  <img width="1024" height="332" style="display:block" class="lazyload" data-sizes="auto"
    data-srcset="https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=75&resize=75 75w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=100&resize=100 100w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=150&resize=150 150w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=240&resize=240 240w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=320&resize=320 320w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=500&resize=500 500w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=640&resize=640 640w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=800&resize=800 800w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=1024&resize=1024 1024w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=1280&resize=1280 1280w,
      https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1&w=1600&resize=1600 1600w"
    data-src="https://i3.wp.com/next.ink/wp-content/uploads/2024/05/image-35-1024x332.png?ssl=1"
    alt=""
    class="wp-image-137524"
    srcset="https://next.ink/wp-content/uploads/2024/05/image-35-1024x332.png 1024w,
      https://next.ink/wp-content/uploads/2024/05/image-35-300x97.png 300w,
      https://next.ink/wp-content/uploads/2024/05/image-35-768x249.png 768w,
      https://next.ink/wp-content/uploads/2024/05/image-35-1536x498.png 1536w,
      https://next.ink/wp-content/uploads/2024/05/image-35-510x165.png 510w,
      https://next.ink/wp-content/uploads/2024/05/image-35.png 1600w"
    sizes="(max-width: 1024px) 100vw, 1024px" />
</figure>

L'élément img a un attribut srcset mais pas d'attribut src.

Certains lecteurs RSS (Selfoss dans mon cas) utilisent l'attribut src pour par exemple générer une URL d'image qui passe par un proxy HTTPS. Je n'ai donc aucune image qui s'affiche dans les articles (hormis l'image d'en-tête, qui a bien l'attribut src).

Alexandre-Gliganic commented 3 months ago

Bonjour,

Nous avons corrigé ce bug.

Merci du signalement 😄