[wp-trac] [WordPress Trac] #62505: Page editor adding <p> around <a> and </a> when using <figure>
WordPress Trac
noreply at wordpress.org
Fri Nov 22 06:29:40 UTC 2024
#62505: Page editor adding <p> around <a> and </a> when using <figure>
----------------------------------------------+----------------------------
Reporter: jasonmader | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: General | Version: 6.7
Severity: normal | Resolution:
Keywords: has-testing-info has-screenshots | Focuses:
----------------------------------------------+----------------------------
Changes (by abcd95):
* keywords: => has-testing-info has-screenshots
Comment:
Hey @jasonmader, Welcome to Trac, and thanks for bringing this up!
I was able to reproduce the issue. However, the behavior I noticed was
slightly different from that of yours, here are the details -
Test Environment -
- WordPress Version: 6.7
- Theme: Twenty Twenty-Five
- Browser: Google Chrome 131.0.6778.85
Entering the HTML -
{{{
<a href="/">Link</a>
<a href="/"><figure>Link</figure></a>
}}}
Result -
{{{
<p><a href="/">Link</a></p>
<p><a href="/"></a></p>
<a href="/"><figure>Link</figure></a>
<p><a href="/"></a></p>
}}}
Screenshot -
[[Image(https://postimg.cc/30vVd2pb)]]
Additional empty anchor tags are being generated and wrapped in paragraph
tags. The behavior differs from the originally reported output where the
anchor tag was being split around the figure element.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62505#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list