Opened 16 years ago
Closed 16 years ago
#3679 closed defect (bug) (duplicate)
Inline <script/> tag in text breaks XHTML
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
#3621