Closed (fixed)
Project:
Drupal core
Version:
9.4.x-dev
Component:
ckeditor5.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Jun 2022 at 10:48 UTC
Updated:
17 Oct 2022 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersComment #3
wim leersComment #5
nod_FilterHtml doesn't throw an error for that kind of configuration it silently ignores it: https://git.drupalcode.org/project/drupal/-/blob/9.5.x/core/modules/filt...
Not sure if it's relevant or not, but just pointing out it's a difference of handling between two similar things
Comment #6
wim leers@nod_ Yep, but that's because
FilterHtmlstores a setting that is essentially user input. Here, we want to be able to compare HTML restrictions. This gets in the way of that. It's up to the code generatingHTMLRestrictionsobjects to only construct valid "HTML restrictions".That's why this patch only touches
HTMLRestrictions, notFilterHTML. So no existing code paths are affected 👍Comment #7
smustgrave commentedWon't this change break sites that are using class="*". there's a number of filter tickets I believe open about that.
Comment #8
wim leers@smustgrave Fair point!
To prove that this does not cause a failure in those cases, here's an explicit test case proving that parsing from
filter_html-like syntax still works as expected. This patch is only explicitly detecting an internal representation edge case that makes no sense.Comment #9
wim leersThe failure on
10.0.xis an unrelated random failure:Comment #10
smustgrave commentedTested on 10.1
<p class="*">to Source Editing field<p class>Because I saw this in ckeditor4 where the style would override a wildcard charcter
<p class="*">to Source Editing field<p class>Everything seemed to work for me.
Comment #11
wim leersThanks, much appreciated @smustgrave! 😊
Comment #12
alexpottBackporting to 9.4.x because ckeditor is experimental there and this is a low-rick bug fix.
Committed and pushed 846cce70f4 to 10.1.x and 2bdd1d4a88 to 10.0.x and 1a518cdeb5 to 9.5.x and 46aadfc71a to 9.4.x. Thanks!