Don't use srcset if srcset is about:blank

Created on 17 July 2024, 6 months ago

Problem/Motivation

Due to lazy loading the srcset attribute is set, but it's set to about:blank.
This means the correct srcset in data-srcset is never processed.

Steps to reproduce

I'm not sure of the module or code responsible for setting the about:blank attribute.

Proposed resolution

If srcset attribute is present, but srcset is set to about:blank, use the data-srcset instead.

The patch attached solve the issue I'm facing.
I'm sharing here in case anyone else faces the same issue.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom dahousecat

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

Comments & Activities

Production build 0.71.5 2024