HTML picture object is replaced by img

Created on 11 October 2023, over 1 year ago
Updated 16 November 2023, about 1 year ago

Problem/Motivation

We are using the article content type to create a page with content and a responsive image (picture).

We are using a view to list all articles with only the image as a picture to be responsive. This image needs to be linkable to the detailed content.

Once I enable the "Linked field" for the image, then the "picture" dom object is replaced by an "img" and the HTML is not the good one.

Steps to reproduce

  • Ensure you have enabled the responsive image module (in the core) with some responsive configurations.
  • Create a custom display for article content type, ie, "Only Image"
  • Enable "Link field" for the image in the Manage display
  • Create a view page to show this Manage display
  • Go to the public page to show the results.
  • Inspect the source code of the element, you will see that "picture" is converted to "img".
🐛 Bug report
Status

Closed: duplicate

Version

1.5

Component

Code

Created by

🇪🇸Spain programeta

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

Comments & Activities

Production build 0.71.5 2024