WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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:

Description

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)

comment:1 @nacin5 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.

comment:2 @scribu5 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.

comment:3 @hakre5 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.