[wp-trac] [WordPress Trac] #14226: Add XHTML namespace declaration to Twenty Ten/Twenty Eleven to provide XHTML compatibility

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 2 20:49:16 UTC 2011


#14226: Add XHTML namespace declaration to Twenty Ten/Twenty Eleven to provide
XHTML compatibility
-----------------------------------+--------------------------
 Reporter:  peaceablewhale         |       Owner:  iandstewart
     Type:  defect (bug)           |      Status:  reviewing
 Priority:  normal                 |   Milestone:  3.2
Component:  Themes                 |     Version:  3.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+--------------------------

Comment (by ocean90):

 I thought that this namespace is now standard in HTML5.

 [[BR]]


 > The first thing to discuss is the xmlns attribute. This is a vestige of
 [http://www.w3.org/TR/xhtml1/ XHTML 1.0]. It says that elements in this
 page are in the XHTML namespace, !http://www.w3.org/1999/xhtml. But
 elements in HTML5 [http://www.whatwg.org/specs/web-apps/current-
 work/multipage/infrastructure.html#xml are always in this namespace], so
 you no longer need to declare it explicitly. Your HTML5 page will work
 exactly the same in all browsers, whether this attribute is present or
 not.

 Source: http://diveintohtml5.org/semantics.html#html-element

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


More information about the wp-trac mailing list