[wp-trac] [WordPress Trac] #43456: `wp_html_split` <script>

WordPress Trac noreply at wordpress.org
Fri Mar 2 08:07:53 UTC 2018


#43456: `wp_html_split` <script>
--------------------------+-----------------------------
 Reporter:  soulseekah    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Shortcodes    |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The following valid HTML post content yields unexpected `wp_html_split`
 results:

 {{{
 <script>1 < 4</script>
 <p>Welcome</p>
 }}}

 Expected:

 {{{
 array( '', '<script>', '1 < 4', '</script>', '' )
 }}}

 Got:

 {{{
 array( '', '<script>', '1 ', '< 4</script>', '' )
 }}}

 Somewhat related but invalid cases: #39153, #40191

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


More information about the wp-trac mailing list