Make WordPress Core

Opened 8 years ago

Last modified 3 years ago

#27530 closed defect (bug)

Anchor tag wrapped around div tag would add extra paragraph tag — at Initial Version

Reported by: Klikerko Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8.1
Component: Editor Keywords: needs-testing has-patch
Focuses: Cc:


(Wordpress version 3.9-Alpha 27111)

This is HTML we added to our page editor:

<div><a href="#"><div>testing</div></a></div>

This is source result we are getting in browser:

<div><a href="#">

For some reason <p> tag have been added. This happens every time block element is inside the anchor tag, we tried with <section> as well. When <span> is used instead all works fine.

Change History (0)

Note: See TracTickets for help on using tickets.