Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9e1859df98
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (7 sloc) 0.806 kb

HTML5 Reverse Ordered Lists (Polyfill)

A polyfill that adds support for reverse ordered lists. See:

Just include the script in any page (at the end or after the DOM has loaded) and it will automagically make the 'reversed' attribute work on ordered lists (the attribute is only meant for ordered lists).

It also takes into consideration the optional 'start' attribute. Fortunately, 'start' has full support in every browser, so no need for a polyfill for that if you're not using 'reversed'.

The script basically uses the cross-browser 'value' attribute on list items that was deprecated in HTML4 but now valid in HTML5.

Jump to Line
Something went wrong with that request. Please try again.