W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2006

[whatwg] [HTML5] Named start values for lists?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 28 Jun 2006 23:34:58 +1000
Message-ID: <44A28582.40304@lachy.id.au>
James Graham wrote:
>> * Would implementations have difficulty with re-numbering list items in
>> linked lists, when a new <li> is dynamically inserted into a previous 
> list?
> 
> I would hope not since that's one of the big attractions of this model.

Perhaps not so much for browsers that natively support it, but for a JS 
implementation designed for backwards compatibility in current browsers, 
it would have to listen for the the events like DOMNodeInserted, 
DOMNodeRemoved and DOMAttrModified (and possibly some others).  They'd 
be needed to handle all cases of list items or entire lists being 
inserted or removed, as well as changing values for the |start|, |value| 
and |continue| attributes for all <ol> and <li> elements, and then 
update all linked lists appropriately.

That could get quite complex and complexity increases the chances of 
introducing bugs.  Besides, not all current browsers support those 
events, which would make a JS implementation quite limited.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Wednesday, 28 June 2006 06:34:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC