[wp-trac] [WordPress Trac] #28762: wpautop and HTML self closing tags

WordPress Trac noreply at wordpress.org
Sun Jul 6 01:04:16 UTC 2014


#28762: wpautop and HTML self closing tags
--------------------------+-----------------------------
 Reporter:  maimairel     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.9.1
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 When using self closing tags like <hr> followed by a line of text
 separated by newline, wpautop returns invalid HTML.

 Consider the following example:

 <hr>
 test

 When inserting this into WordPress editor in text mode, the_content will
 return the following invalid HTML:

 <hr>
 test</p>

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28762>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list