WordPress.org

Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#45168 new defect (bug)

Additional CSS complains of markup inside CSS comments

Reported by: useStrict Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.8
Component: Customize Keywords:
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 12 months ago.
Error message regarding markup inside CSS comment

Download all attachments as: .zip

Change History (2)

@useStrict
12 months ago

Error message regarding markup inside CSS comment

#1 @SergeyBiryukov
12 months ago

  • Component changed from General to Customize
Note: See TracTickets for help on using tickets.