[wp-trac] [WordPress Trac] #15918: wpautop() breaks HTML5 tags

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 11 02:22:37 UTC 2011


#15918: wpautop() breaks HTML5 tags
--------------------------+-----------------------------
 Reporter:  retrib        |       Owner:  dunno
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Formatting    |     Version:  3.0.3
 Severity:  major         |  Resolution:
 Keywords:  3.2-early     |
--------------------------+-----------------------------
Changes (by johnnyb):

 * keywords:  html5 3.2-early => 3.2-early


Comment:

 After further review, this isn't related to HTML5, it's related to the
 inline element being on the same line as the block-level element. If we
 take the test case provided and replace the HTML5 elements with divs:

 {{{
 <div><a href="#">WP IZ ASSUM</a>
 <div>NO IT'S BUGGY AS HELL</div>
 </div>
 }}}

 The same behaviour presents itself and we get this being sent to the
 browser:
 {{{
 <div><a href="#">WP IZ ASSUM</a></p>
 <div>NO IT&#8217;S BUGGY AS HELL</div>
 </div>
 }}}

 Since this isn't restricted to HTML5 I'm adjusting the keywords on the
 ticket.

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


More information about the wp-trac mailing list