[wp-trac] [WordPress Trac] #3952: wpautop incorrectly wraps horizontal rules

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 10 15:58:06 GMT 2007


#3952: wpautop incorrectly wraps horizontal rules
---------------------+------------------------------------------------------
 Reporter:  Otto42   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.2      
Component:  General  |     Version:  2.1.2    
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 hr tags get wrapped inside p.../p tags. Since hr is a block level element,
 and p can only contain inline elements, this causes a validation error.
 It's not enough to throw most browsers into quirks mode, but still,
 wpautop should be modified to recognize hr as a block level element.

 I believe that adding hr to the $allblocks list in wpautop would be enough
 to solve the issue, but I'm not certain.

 The issue has also been noted here:
 http://wordpress.org/support/topic/109513

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3952>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list