Parsing comments with quotes and html symbols makes page render wrong markup.

Created on 5 April 2024, 9 months ago
Updated 23 May 2024, 7 months ago

Problem/Motivation

Found in #3342815-22: Classes missing from Drupal 10 : https://api.stage.cluster.drupalsystems.org/api/drupal/core%21modules%21..., and scroll down.

This is the block that is provoking the issue (found here):

 *   explicitly enabled in any plugin. i.e. if only '<p>', '<h3>' and '<h2>'
 *   tags are allowed, then '<$text-container data-something>' will allow the
 *   'data-something' attribute for '<p>', '<h3>' and '<h2>' tags.
 *   Note that while the syntax is the same, some extra nuance is needed:
 *   although this syntax can be used to create an attribute on an element, f.e.
 *   (['<marquee behavior>']) creating the `behavior` attribute on `<marquee>`,
 *   the tag itself must be creatable as well (['<marquee>']). If a plugin wants
 *   the tag and attribute to be created, list both:
 *   (['<marquee>', '<marquee behavior>']). Validation logic ensures that a
 *   plugin supporting only the creation of attributes cannot be enabled if the
 *   tag cannot be created via itself or through another CKEditor 5 plugin.

Remaining tasks

MR

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇸Spain fjgarlin

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

Comments & Activities

Production build 0.71.5 2024