Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12978 closed enhancement (wontfix)

<di> (definition item) as block level element in wpautop()

Reported by: kasparsd Owned by:
Milestone: Priority: normal
Severity: trivial Version: 3.0
Component: Formatting Keywords: close
Focuses: Cc:


DI isn't included in the definition of block level elements (line 188 in wp-includes/formatting.php):

$allblocks = '(?:table|thead|...

which results in opening paragraph tags <p> being placed before every <di>.

Change History (3)

#1 @nacin
8 years ago

  • Keywords close added; formatting wpautop removed
  • Type changed from defect (bug) to enhancement

The DI element is XHTML2 and was rejected for inclusion in HTML 5.

We don't attempt to be compatible with XHTML2, which aims to pretty much reinvent HTML and introduces a series of elements (and removes many others) in the process.

#2 @scribu
8 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Since we're going with HTML5, might as well close.

#3 @hakre
8 years ago

Are we? I thought there is no preferation and backend is actually XHTML and that's where this is edited.

Note: See TracTickets for help on using tickets.