[wp-trac] [WordPress Trac] #62505: Page editor adding <p> around <a> and </a> when using <figure>

WordPress Trac noreply at wordpress.org
Thu Nov 21 20:13:33 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        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In the html page editor, entering the html,
 {{{
 <a href="/">Link</a>

 <a href="/"><figure>Link</figure></a>
 }}}
 results in
 {{{
 <p><a href="/">Link</a></p>
 <p><a href="/"></p>
 <figure>Link</figure>
 <p></a></p>
 }}}
 The second example is problematic with the <p><a></p> construction.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62505>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list