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

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 6 00:57:56 GMT 2007


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

  * keywords:  needs-patch => wpautop needs-patch
  * owner:  anonymous => mdawaffe
  * status:  new => assigned

Comment:

 I look at your first (and second) example and expect the paragraph to only
 wrap around "Foo":

 {{{
 <p>Foo</p>
 <div>Bar</div>
 }}}

 since paragraph elements can only contain inline content*.  For that
 reason, I do not expect the paragraph to wrap the whole thing:

 {{{
 mdawaffe thinks this is wrong

 <p>Foo<div>Bar</div></p>
 }}}

 * http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_p

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


More information about the wp-trac mailing list