[whatwg] Fw: Lists, <ins>/<del>, and <a>

> ----- Original Message ----- 
> From: "Alexey Feldgendler" <alexey at feldgendler.ru>
> To: <whatwg at whatwg.org>
> Sent: Tuesday, August 29, 2006 7:47 PM
> Subject: Re: [whatwg] Lists, <ins>/<del>, and <a>
>
>
>> On Wed, 30 Aug 2006 01:09:26 +0700, Michel Fortin 
>> <michel.fortin at michelf.com> wrote:
>>
>>>      <ul>
>>>      <ins><li>Some list item</li></ins>
>>>      <del><li>Another list item</li></del>
>>>      </ul>
>>>
>>> Changing this to allow the above markup has consequences on the DOM:
>>> for instance we could no longer iterate on the content of a list
>>> element and expect to catch all of its list items.
>>
>> Probably, lists should implement a special DOM interface which allows to 
>> iterate over the list items. Tables have such an interface.
>>
>

Why not to implement just one simple function:

  function foo(element) { ... }
 ...
 someListElement.select( "li", foo);
 -or-
 someListElement.select( "li:not(li li)", foo);

  instead of multiplying that interfaces?

 Andrew Fedoniouk.
 http://terrainformatica.com

Received on Tuesday, 29 August 2006 20:57:51 UTC