[wp-trac] [WordPress Trac] #21421: Sanitize/remove admin page slug from admin menu CSS classes

WordPress Trac noreply at wordpress.org
Tue Aug 27 05:25:46 UTC 2013


#21421: Sanitize/remove admin page slug  from admin menu CSS classes
-------------------------------+------------------------------
 Reporter:  kawauso            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Administration     |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by wycks):

 Both underscores and dashes are supported in browsers since well..forever.

 The tokenizer for CSS 2.1 :
 http://www.w3.org/TR/CSS21/grammar.html#scanner

 CSS W3 spec:

 "In CSS, identifiers (including element names, classes, and IDs in
 selectors) can contain only the characters [a-z0-9] and ISO 10646
 characters U+00A1 and higher, plus the hyphen (-) and the underscore (_);"

 What does "handle it really badly" mean?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/21421#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list