Opened 3 years ago

Last modified 11 months ago

#14697 new enhancement

wp_list_comments not fully HTML5-friendly

Reported by: adamrice Owned by:
Priority: normal Milestone: Future Release
Component: Comments Version: 3.0.1
Severity: minor Keywords: has-patch
Cc:

Description

Currently, wp_list_comments supports ol, ul, and div as "styles" of nesting for threaded comments. While HTML5 is new enough that good markup practices are not entirely settled, the closest thing I've seen to a consensus is nested article elements.

This is currently not possible (except perhaps through a callback). Making it work right would also require inserting the comment classes as part of wp_list_comments' operation, which might require another parameter to turn it on.

I'm sure there are other WP functions that could use expanding to accommodate good HTML5 markup, but this is what jumped out at me.

Attachments (1)

14697.patch (1.2 KB) - added by jakub.tyrcha 23 months ago.

Download all attachments as: .zip

Change History (5)

  • Milestone changed from Awaiting Review to Future Release

I'm wondering, maybe we should use pubdate and other html5 markup as well when the "article" styling is chosen

  • Keywords has-patch added; comment html5 removed

I commented on the wrong thread, sorry.

Last edited 11 months ago by Umbercode (previous) (diff)
Note: See TracTickets for help on using tickets.