[wp-trac] [WordPress Trac] #34760: TinyMCE adds additional ul tags if successive list items contain script tags

WordPress Trac noreply at wordpress.org
Sun Nov 22 19:05:04 UTC 2015


#34760: TinyMCE adds additional ul tags if successive list items contain script
tags
--------------------------+-----------------------------
 Reporter:  modernnerd    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  TinyMCE       |     Version:  4.3.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+-----------------------------
Changes (by azaozz):

 * milestone:  Awaiting Review => 4.4


Comment:

 This is an interesting edge case in the JS wpautop. Happens when there are
 two `<script>` tags that load external scripts. The regexp that is used to
 protect line breaks inside `<script>` grabs everything from the start of
 the first tag to the end of the second tag and "protects" the line breaks
 breaking the rest of wpautop for that fragment.

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


More information about the wp-trac mailing list