Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
impressivewebs opened this Issue · 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
patrick kettner patrickkettner referenced this issue from a commit in patrickkettner/Modernizr
Paul Irish paulirish detection for ol[reversed]. fixes #422 49efc8a
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.