[whatwg] Reverse ordered lists
Krzysztof Żelechowski
giecrilj at stegny.2a.pl
Wed Jan 23 13:18:23 PST 2008
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.
Chris
More information about the whatwg
mailing list