WordPress.org

Make WordPress Core

Opened 15 months ago

Last modified 7 weeks 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:
PR Number:

Description

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 15 months ago.
Error message regarding markup inside CSS comment

Download all attachments as: .zip

Change History (3)

@useStrict
15 months ago

Error message regarding markup inside CSS comment

#1 @SergeyBiryukov
15 months ago

  • Component changed from General to Customize

#2 @dlh
7 weeks 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.