Embedded an image in some editor.
Should be recognized as e.g. responsive image.
But Drupal wraps source and img elements in p-tag (_filter_autop()), because they aren't set as block level tags,
and that causes errors.
Here's a patch that specifies source and img elements as block level tags.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupatz created an issue. See original summary.

melsi’s picture

FileSize
1.03 KB
592 bytes

Updated patch against 8.5.

geek-merlin’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry, to me it seems like this is wrong from the beginning: Neither img (inline) nor source (only child of picture and media) are block level elements.

pameeela’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
Issue tags: +Bug Smash Initiative

Thanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.

As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)".

Since there weren't other steps to reproduce the issue provided since the issue was postponed, I'm marking the issue "Closed (cannot reproduce)". If anyone can provide complete steps to reproduce the issue (starting from "Install Drupal core"), document those steps in the issue summary and set the issue status back to "Active".

Thanks!