[wp-trac] [WordPress Trac] #45168: Additional CSS complains of markup inside CSS comments

WordPress Trac noreply at wordpress.org
Wed Oct 24 20:17:17 UTC 2018


#45168: Additional CSS complains of markup inside CSS comments
--------------------------+-----------------------------
 Reporter:  useStrict     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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
  1. Add a comment with some markup in it
 `/* this is <a> markup test */`
  3. Hit Publish
  1. 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45168>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list