Make WordPress Core

Opened 7 years ago

Last modified 4 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:


post content

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

generated markup - note wrong HTML

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

related: #40135

Change History (3)

#1 @jim5471
7 years ago

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

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

4 years ago

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