[wp-trac] [WordPress Trac] #5410: code correction shouldn't apply
to anything within a <pre/> block
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 2 04:17:37 GMT 2007
#5410: code correction shouldn't apply to anything within a <pre/> block
-----------------------------+----------------------------------------------
Reporter: robertaccettura | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version:
Severity: normal | Keywords: pre, html, xhtml, parser
-----------------------------+----------------------------------------------
In 2.3.1, the correction is a little too aggressive. Take the following
example:
{{{
<pre lang="javascript">
function bug(){
do{
monkeysRule();
} while(3<a);
}
</pre>
}}}
Will be corrected to:
{{{
<pre lang="javascript">
function bug(){
a=5;
do{
monkeysRule();
a--
} while(3<a);
}
</pre></a></pre>
}}}
Clearly incorrect. Any logic that involves <TAG would exhibit this bug.
For example <b, <i, would be easy mistakes to make.
--
Ticket URL: <http://trac.wordpress.org/ticket/5410>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list