Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#40202 new defect (bug)

wpautop bad code

Reported by: jim5471's profile jim5471 Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.7.3
Component: Formatting Keywords: needs-patch
Focuses: Cc:

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 (3)

#1 @jim5471
8 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 8 years ago by jim5471 (next)

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


5 years ago

#3 @noisysocks
5 years ago

  • Component changed from General to Formatting
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

I can reproduce this. Possibly same root cause as #27350.

Note: See TracTickets for help on using tickets.