[wp-trac] [WordPress Trac] #55027: force_balance_tags function breaks nested G tabs in SVG

WordPress Trac noreply at wordpress.org
Tue Feb 8 09:30:38 UTC 2022


#55027: force_balance_tags function breaks nested G tabs in SVG
---------------------------+------------------------------
 Reporter:  svitlana41319  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  5.9
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by naaaaiix):

 Please, fix it! Had to change lots of icons of my clients sites. Been a
 nightmare until I discovered what it was. Here's an example:
 Expected code and result:
 {{{
 <svg width="1200" height="1200">
         <g fill="white" stroke="green" stroke-width="10">
                 <circle cx="40" cy="40" r="25" />
                 <g fill="red" stroke="blue" stroke-width="20">
                         <circle cx="80" cy="40" r="25" />
                         <circle cx="120" cy="40" r="25" />
                 </g>
                 <circle cx="160" cy="40" r="25" />
         </g>
 </svg>
 }}}

 [[Image(https://i.ibb.co/LpqwY52/Captura-de-
 pantalla-2022-02-08-a-las-10-21-12.png)]]

 Received code and result:
 {{{
 <svg width="1200" height="1200">
         <g fill="white" stroke="green" stroke-width="10">
                 <circle cx="40" cy="40" r="25"></circle>
         </g>
         <g fill="red" stroke="blue" stroke-width="20">
                 <circle cx="80" cy="40" r="25"></circle>
                 <circle cx="120" cy="40" r="25"></circle>
         </g>
         <circle cx="160" cy="40" r="25"></circle>
 </svg>
 }}}

 [[Image(https://i.ibb.co/dbHHq04/Captura-de-
 pantalla-2022-02-08-a-las-10-29-04.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55027#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list