WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#40202 new defect (bug)

wpautop bad code

Reported by: jim5471 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.3
Component: General Keywords:
Focuses: Cc:
PR Number:

Description

post content

<a href="document.htm"><div>Text</div></a>

generated markup - note wrong HTML

<p><a href="document.htm"></p>
<div>Text</div>
<p></a></p>

related: #40135

Change History (1)

#1 @jim5471
3 years ago

Similar result Post content

<a href="document.htm"><span>Text</span></a>

generated markup

<p><a href="document.htm"><span>Text</span></a></p>
<p><span><img src="image.png" alt="thumb"></p>
Version 0, edited 3 years ago by jim5471 (next)
Note: See TracTickets for help on using tickets.