[wp-trac] Re: [WordPress Trac] #8446: post_class() outputs invalid css class

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 11 00:47:00 GMT 2008


#8446: post_class() outputs invalid css class
----------------------+-----------------------------------------------------
 Reporter:  lilyfan   |        Owner:  anonymous
     Type:  defect    |       Status:  new      
 Priority:  high      |    Milestone:  2.7.1    
Component:  Template  |      Version:  2.7      
 Severity:  blocker   |   Resolution:           
 Keywords:  class     |  
----------------------+-----------------------------------------------------
Changes (by lilyfan):

  * severity:  major => blocker
  * milestone:  2.8 => 2.7.1

Comment:

 > Named classes are easier to style against than id

 I agree this, but I think that avoiding invalid css class name is prior
 than easy-to-use.
 Current WP 2.7 RC2 creats invalid css names at non-ascii languages such as
 Japanese, Chinese.
 This is a blocker ticket to relase 2.7!!

 > Unicode is valid, so why not urldecode() then escape with
 attribute_escape()

 attribute_escape() does NOT escape '%' sign. This solution is not good for
 this problem.
 A new function to escape for css name is needed.

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


More information about the wp-trac mailing list