Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#3679 closed defect (bug) (duplicate)

Inline <script/> tag in text breaks XHTML

Reported by: robertaccettura's profile 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
16 years ago

  • Milestone changed from 2.3 to 2.2

#2 @Viper007Bond
16 years ago

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