[wp-trac] [WordPress Trac] #33924: sanitize_html_class valid characters

WordPress Trac noreply at wordpress.org
Fri Sep 18 16:39:12 UTC 2015


#33924: sanitize_html_class valid characters
--------------------------+-----------------------------
 Reporter:  m-e-h         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `sanitize_html_class` excludes some increasingly common valid html
 characters.
 In particular the `@` character.
 The use of `@` may not be extremely common for class names but it is being
 encouraged by some pretty renowned folks in the area of class naming
 conventions. http://csswizardry.com/2015/08/bemit-taking-the-bem-naming-
 convention-a-step-further/#responsive-suffixes

 Actually pretty much anything is now valid for html classes except for
 spaces or tabs. I also use the `/` quite a bit in my classes but I thought
 I'd start with the `@` .

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


More information about the wp-trac mailing list