Make WordPress Core

Opened 9 years ago

Closed 7 years ago

#42410 closed defect (bug) (duplicate)

wpautop() breaks HTML (missing start tag p)

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

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
7 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #27350.

Note: See TracTickets for help on using tickets.