Make WordPress Core

Opened 7 years ago

Closed 5 years ago

#42410 closed defect (bug) (duplicate)

wpautop() breaks HTML (missing start tag p)

Reported by: mar1in's profile mar1in Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: Formatting Keywords:
Focuses: Cc:

Description

Steps to reproduce:

  1. Create new page with the following content:
    <ul>
    <li>Text
    <!-- Comment -->
    <ol></ol></li>
    </ul>
    
  2. Preview post and inspect HTML output

Expected result:

<ul>
<li>Text<br />
<!-- Comment -->
<ol></ol>
</li>
</ul>

Actual result:

<ul>
<li>Text<br />
<!-- Comment --></p>
<ol></ol>
</li>
</ul>

Change History (1)

#1 @pento
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #27350.

Note: See TracTickets for help on using tickets.