[wp-trac] [WordPress Trac] #5519: In XHTML header, encoding should be specified before the <title> tag

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 23 20:02:47 GMT 2007


#5519: In XHTML header, encoding should be specified before the <title> tag
-------------------------------+--------------------------------------------
 Reporter:  RanYanivHartstein  |       Owner:  anonymous       
     Type:  defect             |      Status:  new             
 Priority:  normal             |   Milestone:                  
Component:  General            |     Version:                  
 Severity:  normal             |    Keywords:  has-patch tested
-------------------------------+--------------------------------------------
 In several places in the WordPress source, there are XHTML headers in
 which the <title> tag comes before the encoding meta tag.

 Since the text in the title can be UTF-8 text, the encoding should be
 specified before it. Otherwise, in certain cases, the user agent needs to
 guess the correct encoding for the title.

 I enclosed a patch for everywhere I could find where the encoding
 declaration comes after the <title> tag. I tested it with 2.4-bleeding
 (r6475).

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5519>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list