[wp-trac] [WordPress Trac] #45387: Valid HTML get mangled on the frontend

WordPress Trac noreply at wordpress.org
Fri Sep 1 08:24:16 UTC 2023


#45387: Valid HTML get mangled on the frontend
--------------------------+------------------------------
 Reporter:  youknowriad   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by rickiwylder):

 I've recently experienced this too. Trying to paste an Active Campaign
 form embed into the HTML block. The embed is one part style, one part html
 markup and the last part is a script tag where all validation logic etc is
 happening.

 This code:

 {{{
 if (elem.type != 'radio' && elem.type != 'checkbox')
 }}}

 Becomes:

 {{{
 if (elem.type != 'radio' && elem.type != 'checkbox')
 }}}


 which breaks the script. Sounds like what @ninetyninew reported although
 I'm using a custom classic theme.

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


More information about the wp-trac mailing list