[wp-trac] [WordPress Trac] #52463: Inline SVG - foreignObject support

WordPress Trac noreply at wordpress.org
Tue Feb 9 21:20:15 UTC 2021


#52463: Inline SVG - foreignObject support
--------------------------+------------------------------
 Reporter:  edent         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  5.6.1
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => 2nd-opinion
 * component:  General => Formatting


Comment:

 There is a workaround:
 1. Install and activate the [https://wordpress.org/plugins/raw-html/ Raw
 HTML plugin].
 2. Paste the SVG inside plugin-specific `<!--raw--><!--/raw-->` comment
 tags (or the shortcode) in the Text editor.

 {{{
 <!--raw-->
 <svg xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink">
 <foreignObject>
         <blockquote xmlns="http://www.w3.org/1999/xhtml">
                 Hello
         </blockquote>
 </foreignObject>
 </svg>
 <!--/raw-->
 }}}

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


More information about the wp-trac mailing list