WordPress.org

Make WordPress Core

Opened 3 months ago

#43456 new defect (bug)

`wp_html_split` <script>

Reported by: soulseekah Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Shortcodes Keywords:
Focuses: Cc:

Description

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

Attachments (3)

43456.tests.diff (697 bytes) - added by soulseekah 3 months ago.
43456.tests.2.diff (689 bytes) - added by soulseekah 3 months ago.
tests
43456.2.diff (901 bytes) - added by soulseekah 3 months ago.
fix

Download all attachments as: .zip

Change History (3)

@soulseekah
3 months ago

tests

@soulseekah
3 months ago

fix

Note: See TracTickets for help on using tickets.