[wp-trac] [WordPress Trac] #15918: wpautop() breaks inline tags on the same line as block tags

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 11 11:02:24 UTC 2012


#15918: wpautop() breaks inline tags on the same line as block 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 wpautop  |
-------------------------------+-----------------------------

Comment (by soulseekah):

 Input:

 `<a href="#"><div>this seems valid</div></a>`

 Output:

 `<p><a href="#">\n<div>this seems valid</div>\n<p></a></p>\n`

 This may not be up to some strict standards but is quite valid input, it
 seems. At least many validators accept that.

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


More information about the wp-trac mailing list