Closed (duplicate)
Project:
Drupal core
Version:
9.4.x-dev
Component:
markup
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jul 2020 at 13:44 UTC
Updated:
21 Aug 2022 at 20:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
purushotam.rai commentedComment #5
gordon commentedI have tested this and added this to a client.
Basically the problem is that the start and end comment is being wrapped in a HTML comment which is not applicable in a style or script element.
Comment #6
alexpottThis patch will break the filter tests and also are we absolutely sure this approach is correct?
This code is very old and has been used by filters for years. If I put
into https://validator.w3.org/ it does not come back with errors about cdata - and if I put this into a .htm file and open it in a browser it opens as expected.
That said looking at the link the issue summary the changes do look correct. I wonder if anyone is relying on the current behaviour.
This code has been this way since #721536: HTML corrector filter has problems with unescaped CDATA and incorrectly closed tags
Comment #8
smustgrave commentedbelieve this could be a duplicate of https://www.drupal.org/project/drupal/issues/3259255 which is further along.
Comment #9
smustgrave commentedclosing as a duplicate.
If you feel this is a different issue please reopen.