W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2008

[whatwg] Reverse ordered lists

From: Krzysztof Żelechowski <giecrilj@stegny.2a.pl>
Date: Wed, 23 Jan 2008 22:18:23 +0100
Message-ID: <1201123103.6536.45.camel@a1dmin.vola.spe.com.pl>

Dnia 23-01-2008, ?r o godzinie 14:57 -0600, Siemova pisze:

> Moreover, and more importantly, that would make the feature terribly
> inflexible. If you decided to add or remove items -- or, heaven
> forbid, you wanted to (re)populate your list on-the-fly with a script
> -- you'd have to keep changing the start value by hand. That would be
> well-nigh impossible in certain situations, and I think it's a bit
> unreasonable to expect. 

It is straightforward to count the children of an ordered list element; 
the DOM does it automatically 
so that you need not even use a loop to achieve that.

Received on Wednesday, 23 January 2008 13:18:23 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:00 UTC