Ticket #5410 (new defect)

Opened 1 year ago

Last modified 1 year ago

code correction shouldn't apply to anything within a <pre/> block

Reported by: robertaccettura Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: General Version: 2.5
Severity: normal Keywords: pre html xhtml parser needs-patch wpautop
Cc:

Description

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.

Change History

12/02/07 05:17:14 changed by Viper007Bond

  • keywords changed from pre, html, xhtml, parser to pre html xhtml parser needs-patch.
  • version set to 2.4.

Not to toot my own horn, but try SyntaxHighlighter.

12/03/07 20:02:19 changed by lloydbudd

  • keywords changed from pre html xhtml parser needs-patch to pre html xhtml parser needs-patch wpautop.