Ticket #3647 (closed defect: invalid)

Opened 2 years ago

Last modified 2 years ago

wordpress automatically adds <p> and </p> tags to <code> blocks

Reported by: Znuff Assigned to: anonymous
Priority: high Milestone:
Component: Template Version: 2.1
Severity: critical Keywords: xml, xhtml, auto-correcting
Cc:

Description

wordpress 2.1 and the latest svn 2.2 adds automatically <p> and </p> tags inside <code> blocks. Sometimes it forgets to add <p> and leaves just </p>'s in the source and that breaks XHTML validation. It should leave <pre> and <code> tag blocks alone.

Change History

01/25/07 21:08:53 changed by Znuff

  • status changed from new to closed.
  • resolution set to invalid.

My bad... you should use <code> inside <pre>, as <code> doesn't imply that the text is pre-formatted.

02/24/07 02:24:06 changed by Nazgul

  • milestone deleted.