[wp-trac] [WordPress Trac] #3679: Inline <script/> tag in text
breaks XHTML
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 26 01:29:44 GMT 2007
#3679: Inline <script/> tag in text breaks XHTML
-----------------------------+----------------------------------------------
Reporter: robertaccettura | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: Administration | Version: 2.1
Severity: normal | Keywords: xhtml validation
-----------------------------+----------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/3679>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list