CKEditor 5 + Full HTML prevents the child combinator CSS selector to be used in <style>

Created on 31 October 2023, about 1 year ago
Updated 30 November 2023, 12 months ago

Problem/Motivation

The site administrators are using the CKEditor 5 FULL HTML text format to provide custom stylings using tags with the source editing. But when the css is used with the '>' syntax, ex:

<style type="text/css">
.sections > h2 {
</style>

the > symbol (the child combinator selector: https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator) gets replaced into html entities and shown as

<style type="text/css">
.sections &gt; h2 {
</style>

This is checked with the latest 10.1.5 version. We checked by unchecking the filter "Correct faulty and chopped off HTML" filter but still able to reproduce this issue.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: duplicate

Version

10.1

Component
CKEditor 5 

Last updated about 5 hours ago

Created by

🇮🇳India ramprassad

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024