----- Original Message ----- From: "Alexey Feldgendler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> 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

Reply via email to