Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#3647 closed defect (bug) (invalid)

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

Reported by: znuff's profile Znuff Owned by:
Milestone: Priority: high
Severity: critical Version: 2.1
Component: Template Keywords: xml, xhtml, auto-correcting
Focuses: 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 (2)

#1 @Znuff
18 years ago

  • Resolution set to invalid
  • Status changed from new to closed

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

#2 @Nazgul
17 years ago

  • Milestone 2.1.1 deleted
Note: See TracTickets for help on using tickets.