Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
impressivewebs opened this Issue · 3 comments

2 participants

@impressivewebs

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

@paulirish
Owner

i would imagine its

'reversed' in document.createElement('ol')
@impressivewebs

So this works:

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

Thanks.

@paulirish
Owner

added in 2759a52

@paulirish paulirish closed this
@phistuck phistuck referenced this issue from a commit
PhistucK detection for ol[reversed]. fixes #422 259589a
@patrickkettner patrickkettner referenced this issue from a commit in patrickkettner/Modernizr
@paulirish 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.