Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#10346 closed defect (bug) (duplicate)

WordPress creates invalid XHTML in some scenarios when a DIV is used

Reported by: duanestorey's profile duanestorey Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: bug, xhtml, validation
Focuses: Cc:


If you insert a DIV into the post, WordPress sometimes seems to insert an extra closing P tag, which causes XHTML validation to fail. The test content I used was:

<div id="test">
This is some test content.

This is some other content.

And the extra closing P comes after the first sentence.

Change History (1)

#1 @Denis-de-Bernardy
15 years ago

  • Milestone Unassigned deleted
  • Resolution set to duplicate
  • Status changed from new to closed

see #3833 and related tickets

Note: See TracTickets for help on using tickets.