[wp-trac] [WordPress Trac] #12483: Short, HTML5 charset declaration for Twenty Ten

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 2 20:09:49 UTC 2010


#12483: Short, HTML5 charset declaration for Twenty Ten
-------------------------+--------------------------------------------------
 Reporter:  demetris     |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  General      |     Version:  3.0      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
 The attached patch changes the charset declaration of 2010 to the new
 short version introduced with HTML5.  That is, for UTF-8:

 {{{<meta charset="UTF-8" />}}}

 Note that the W3 validator does not yet understand this, and gives a
 warning that there is no charset declaration at the document level (as
 distinguished from the HTTP header).  See, for example:

 http://validator.w3.org/check?uri=http://op111.net/

 However, the declaration is understood by ALL user agents, even those that
 know nothing about HTML5, and is the recommended way of declaring the
 character set at the document level in HTML5.

 (validator.nu, by the way, understands the short declaration fine.)

 More:

 http://www.w3.org/TR/html5-diff/#character-encoding

 http://oli.jp/2009/html5-charset/

 http://diveintohtml5.org/semantics.html

 The patch also moves the declaration above the TITLE element, to make it
 the first element of the HEAD section.

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


More information about the wp-trac mailing list