[wp-trac] [WordPress Trac] #27530: Anchor tag wrapped around div tag would add extra paragraph tag
WordPress Trac
noreply at wordpress.org
Wed Mar 26 17:18:47 UTC 2014
#27530: Anchor tag wrapped around div tag would add extra paragraph tag
--------------------------+-----------------------------
Reporter: Klikerko | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
(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="#">
<div>testing</div>
<p></a></div>
}}}
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27530>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list