Extend the filter for responsive images (srcset attribute)

Created on 22 November 2022, almost 2 years ago
Updated 30 November 2023, 10 months ago

Problem/Motivation

The text filter works fine for simple images (img tags, on their src attribute) but not on responsive images (picture > source tag on their srcset attribute).

Steps to reproduce

Add a responsive image in a proper field, enable the module, enable the filter, and check the source code: The fallback img element is converted to absolute, but not the several source elements.

Proposed resolution

Extend the list of attributes that get treated.

Remaining tasks

Write and upload a patch.

User interface changes

None.

API changes

None.

Data model changes

None.

โœจ Feature request
Status

Needs review

Version

2.2

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ดNorway efpapado

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024