Skip to content
This repository

Support for "reversed" Attribute on Ordered Lists? #422

Closed
impressivewebs opened this Issue December 01, 2011 · 3 comments

2 participants

Louis Lazaris Paul Irish
Louis Lazaris

I don't see anything in the docs or GitHub issues that mentions the "reversed" attribute on ordered lists. Can this be added? Has it been discussed?

I've written what I believe to be an accurate polyfill for the "reversed" attribute on ordered lists:

https://github.com/impressivewebs/HTML5-Reverse-Ordered-Lists

It also takes into consideration the "start" attribute. More info on these here:

http://dev.w3.org/html5/spec/Overview.html#the-ol-element

Paul Irish
Owner

i would imagine its

'reversed' in document.createElement('ol')
Louis Lazaris

So this works:

if (!('reversed' in document.createElement('ol'))) { }

Thanks.

Paul Irish
Owner

added in 2759a52

Paul Irish paulirish closed this December 04, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.