[whatwg] Reverse ordered lists
Siemova
siemova at gmail.com
Wed Jan 23 09:18:09 PST 2008
On Jan 23, 2008 10:54 AM, David Walbert <dwalbert at learnnc.org> wrote:
>
> It's not that simple -- the last line should be
>
> start = 1 + ( (number of items - 1) * step)
>
> if it's assumed that the last item of the list is numbered one by default.
>
Alas, we see the ill effects of my hastiness today! I stand happily
corrected. In that case, it's even simpler:
if start is not specified
start = 1
if reverse
start += (number of items - 1) * step
Here's hoping I haven't missed something obvious again. ^_^ Regardless, I
think we've shown it's fairly painless to implement.
- Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080123/4c7bdbee/attachment-0001.htm>
More information about the whatwg
mailing list