[whatwg] Reverse ordered lists

Dnia 23-01-2008, ?r o godzinie 12:53 -0600, Siemova pisze:
> On Jan 23, 2008 12:18 PM, Dave Singer <singer at apple.com> wrote: 
>         how about assuming that if the source wants it numbered in
>         reverse
>         order, it knows what it is doing, and can tell the browser
>         what
>         number to start at?
>         
>         it still seems the simplest:  an attribute that gives the
>         starting 
>         number (default 1) and an attribute that gives the direction
>         (increasing or decreasing, default increasing).
> 
> 
> True, that's simplest to implement, but why put the onus on the
> content author to add things up and specify a start value every time?

If for no other reason, in order to help global warming.
A HTML document is written once, read lots of times.
If the author insists that counting the items is an excessive burden 
(it is not; if you cannot count yourself,
just remove the reverse attribute 
and look at the last item as rendered) 
he could use a generator or a fix-up processor before publishing.

Chris 

Received on Wednesday, 23 January 2008 11:23:48 UTC