WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#35079 closed defect (bug) (fixed)

Allow reversed attribute for ordered list HTML element

Reported by: lancewillett Owned by: SergeyBiryukov
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

Update kses to allow the reversed attribute (boolean) on ol HTML elements.

Spec: http://www.w3.org/TR/html-markup/ol.html#ol.attrs.reversed

To test in the wp-admin editor, use markup like this:

<ol reversed="reversed">
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
</ol>

After publishing a new post with that HTML content, the reversed attribute should persist.

Attachments (1)

35079.patch (906 bytes) - added by lancewillett 3 years ago.

Download all attachments as: .zip

Change History (6)

@lancewillett
3 years ago

#1 @swissspidy
3 years ago

  • Keywords has-unit-tests added

#2 @SergeyBiryukov
3 years ago

  • Milestone changed from Awaiting Review to 4.5

#3 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 35960:

KSES: Allow the reversed attribute for <ol>.

Props lancewillett.
Fixes #35079.

#4 @johnbillion
3 years ago

Purely as an FYI, the reversed attribute isn't supported in any version of IE, for anything thinking of using it.

#5 @johnbillion
3 years ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.