[wp-trac] [WordPress Trac] #24499: Twenty Thirteen: Remove trailing slashes on void elements, remove type attribute from script

WordPress Trac noreply at wordpress.org
Wed Jun 5 16:54:16 UTC 2013


#24499: Twenty Thirteen: Remove trailing slashes on void elements, remove type
attribute from script
---------------------------+--------------------
 Reporter:  retlehs        |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  3.6
Component:  Bundled Theme  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |
---------------------------+--------------------
Changes (by lancewillett):

 * keywords:  dev-feedback => needs-patch
 * milestone:  Awaiting Review => 3.6


Comment:

 Thanks for bringing this up.

 Totally agree on the script "type" removal.

 For the void element final forward slash, old habits die hard. :)

 We're *still* migrating (both in practice and content) from XHTML land to
 HTML land, and it'll be a long time before we're there completely because
 of how much content is already published with the older XML-like syntax.

 As you point out, all the specs (WHATWG, W3C) say that the slash is
 optional and has no effect on void elements. So, while not harmful, it's
 cruft and can be removed safely.

 Some additional reading:

 - http://www.whatwg.org/specs/web-apps/current-work/#end-tags
 -
 http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F
 - http://lists.whatwg.org/pipermail/help-
 whatwg.org/2008-August/000137.html

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


More information about the wp-trac mailing list