WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#40202 new defect (bug)

wpautop bad code

Reported by: 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
4 years ago

Last edited 4 years ago by jim5471 (previous) (diff)

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


5 months ago

#3 @noisysocks
5 months 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.