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

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

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 29 Aug 2006 20:57:51 -0700
Message-ID: <001801c6cbe8$76d91ff0$3401a8c0@TERRA>

> ----- 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

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