New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
impressivewebs opened this Issue Dec 1, 2011 · 3 comments

Comments

Projects
None yet
2 participants
@impressivewebs

impressivewebs commented Dec 1, 2011

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

This comment has been minimized.

Show comment
Hide comment
@paulirish

paulirish Dec 1, 2011

Member

i would imagine its

'reversed' in document.createElement('ol')
Member

paulirish commented Dec 1, 2011

i would imagine its

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

This comment has been minimized.

Show comment
Hide comment
@impressivewebs

impressivewebs Dec 2, 2011

So this works:

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

Thanks.

impressivewebs commented Dec 2, 2011

So this works:

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

Thanks.

@paulirish

This comment has been minimized.

Show comment
Hide comment
@paulirish

paulirish Dec 4, 2011

Member

added in 2759a52

Member

paulirish commented Dec 4, 2011

added in 2759a52

@paulirish paulirish closed this Dec 4, 2011

patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment