Skip to content

Commit

Permalink
added notes to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
impressivewebs committed Dec 2, 2011
1 parent c697b88 commit 98a533e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -4,4 +4,10 @@ A polyfill that adds support for reverse ordered lists. See:

http://www.impressivewebs.com/reverse-ordered-lists-html5

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

Just include the script in any page along with the jQuery library 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.

0 comments on commit 98a533e

Please sign in to comment.