Make WordPress Core

Opened 22 months ago

Last modified 8 months ago

#45168 new defect (bug)

Additional CSS complains of markup inside CSS comments

Reported by: useStrict Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.7
Component: Customize Keywords: needs-patch
Focuses: Cc:


When adding CSS to a site via Appearance > Customize > Additional CSS, the syntax validator will complain if it finds markup regardless of it being inside a /* */ comment.

Steps to replicate:

  1. Go to Admin > Appearance > Customize > Additional CSS
  2. Add a comment with some markup in it

/* this is <a> markup test */

  1. Hit Publish
  2. See attached error message - but note that no indicator as to what line contains the markup appears.

The only workaround is to remove the markup from the comment.

Ideally the syntax validator should not care about anything in CSS comment blocks.

Attachments (1)

Screenshot 2018-10-24 16.16.17.png (24.3 KB) - added by useStrict 22 months ago.
Error message regarding markup inside CSS comment

Download all attachments as: .zip

Change History (3)

22 months ago

Error message regarding markup inside CSS comment

#1 @SergeyBiryukov
22 months ago

  • Component changed from General to Customize

#2 @dlh
8 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 4.9.8 to 4.7
Note: See TracTickets for help on using tickets.