[whatwg] Reverse ordered lists
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg