WordPress.org

Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#3679 closed defect (bug) (duplicate)

Inline <script/> tag in text breaks XHTML

Reported by: robertaccettura Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: xhtml validation
Focuses: Cc:

Description

Here's a sample of the code entered:

This is some text with a script in it<script type="text/javascript"> printEmailMsg(); </script>.

The output expected (and done in 2.0.x) is:

<p>This is some text with a script in it<script type="text/javascript"> printEmailMsg(); </script>.</p>

Actual output in 2.1 is:

<p>This is some text with a script in it<br />
<script type="text/javascript"> printEmailMsg(); </script>

<p>.</p>

This is obviously broken, and breaks older content. <p/> is not closed, shouldn't have a <br/> inserted.

Change History (2)

#1 @foolswisdom
14 years ago

  • Milestone changed from 2.3 to 2.2

#2 @Viper007Bond
14 years ago

  • Milestone 2.2 deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.