Re: 3.11 Lists Review Comments (ol/@start, li/@value)

On Jul 17, 2007, at 4:06 PM, Thomas Broyer wrote:

>
> 2007/7/17, Dan Connolly:
>>
>> I'll also contribute just a little bit of research...
>> a google search for "HTML reference" yields
>> http://htmlhelp.com/reference/html40/ , and
>> in there we read...
>>
>> "The deprecated START attribute suggests the starting number for the
>> list and defaults to 1. ... While this attribute is deprecated,  
>> there is
>> currently no substitute for it in Cascading Style Sheets."
>>  -- http://htmlhelp.com/reference/html40/lists/ol.html
>
> This is wrong:
> "'counter-reset'
>    Value:  	[ <identifier> <integer>? ]+ | none | inherit
> [...]
> The 'counter-reset' property also contains a list of one or more names
> of counters, each one optionally followed by an integer. The integer
> gives the value that the counter is set to on each occurrence of the
> element. The default is 0."
> -- http://www.w3.org/TR/CSS2/generate.html#counters
>
> ...though I don't now how well this is implemented in browsers (seems
> like IE, even IE7, doesn't implement it; or is it just its lack of
> ::before support?).

I think many browsers implement ordered list enumeration without  
implementing counters. So CSS implementations have not yet caught  up  
to an extent that this feature could be dropped form HTML Even with  
CSS, this strikes me as one of those things that should also have a  
mechanism in HTML too. After all, when there's a skip in an ordered  
list jumping from say 1, 2, 3, 4, 5, ... 15, that strikes me as  
semantic document data (and not merely presentational). It would be  
ideal if CSS counters could pick up on the HTML attribute values to  
generate numbered list markers.

Take care,
Rob

Received on Tuesday, 17 July 2007 22:20:51 UTC