WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#27822 closed defect (bug) (wontfix)

Editor doesn't use HTML 5 elements for Galleries and Captions when enabled

Reported by: ScottSmith Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: Editor Keywords:
Focuses: administration Cc:

Description

If a theme uses HTML 5 Galleries or captions, the editor continues to output the HTML 4 elements rather than use HTML 5 elements. Aside from the inconsistency, this could create backwards-compatibility issues in the future if theme devs start styling the editor based on the HTML 4 elements (although most theme devs should use classes to style galleries and captions).

Ideally, in 3.9, the editor should output the same elements for galleries and captions both in the editor and front-end.

Change History (3)

This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.


7 years ago

#3 @azaozz
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Replied at https://core.trac.wordpress.org/ticket/26642#comment:40: the DL node is used in JS to manage the caption.

Last edited 7 years ago by azaozz (previous) (diff)
Note: See TracTickets for help on using tickets.