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

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

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 30 Aug 2006 17:16:54 +1000
Message-ID: <44F53B66.8000008@lachy.id.au>
Andrew Fedoniouk wrote:
> Lets forget about <ins> or <del> as anyway this is better
> 
> <ol>
>   <li class="new" inversion="">Some list item</li>
>   <li class="removed" inversion="">Another list item</li>
> </ol>

I don't know what the inversion attribute is supposed to mean, but the 
class attribute is semantically meaningless.  However, we could 
introduce the edit and datetime attributes from the XHTML 2.0 draft's 
Edit Attributes Module [1].

Then we could just define that <ins> and <del> are semantically 
equivalent to <div edit="inserted"> and <div edit="deleted"> (or span, 
when used as inline elements), respectively.

That way, we could use this:

<ul>
   <li edit="inserted">Some list item</li>
   <li edit="deleted">Another list item</li>
   <li edit="changed">Modified list item</li>
   <li edit="moved">Moved list item</li>
</ul>

[1] http://www.w3.org/TR/xhtml2/mod-edit.html

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Wednesday, 30 August 2006 00:16:54 UTC

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