[wp-trac] Re: [WordPress Trac] #4857: More issues with wpautop()

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 9 06:14:33 GMT 2008


#4857: More issues with wpautop()
---------------------------------+------------------------------------------
 Reporter:  Viper007Bond         |        Owner:  mdawaffe
     Type:  defect               |       Status:  assigned
 Priority:  low                  |    Milestone:  2.5     
Component:  Template             |      Version:  2.3     
 Severity:  normal               |   Resolution:          
 Keywords:  wpautop needs-patch  |  
---------------------------------+------------------------------------------
Comment (by DD32):

 Issue Semi-resolved.

 {{{
 <img width="700" height="525" src="someimage.jpg" />
 <p class="description">Description of image</p>
 }}}
 results in: (Incorrect, double <p>'s)
 {{{
 <p><img src="someimage.jpg" height="525" width="700" /></p>
 <p><p class="description">Description of image</p></p>
 }}}

 {{{
 <img width="700" height="525" src="someimage.jpg" />
 <div class="description">Description of image</div>
 }}}
 results in: (Which seems to be correct?)
 {{{
 <p><img src="someimage.jpg" height="525" width="700" /></p>
 <div class="description">Description of image</div>
 }}}

 Mind you, The resulting HTML in all cases seems to validate for me, But
 i'm pretty sure the nested <p>'s isnt right. (At least they're balanced
 now though)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4857#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list