Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | interdiff.txt | 592 bytes | melsi |
#2 | 2852873-core-filter_autop-2-D8.patch | 1.03 KB | melsi |
Comments
Comment #2
melsi CreditAttribution: melsi commentedUpdated patch against 8.5.
Comment #3
geek-merlinSorry, 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.
Comment #4
pameeela CreditAttribution: pameeela commentedThanks 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!