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

[whatwg] My case for Ruby-elements

From: Michel Fortin <michel.fortin@michelf.com>
Date: Mon, 13 Aug 2007 15:14:57 -0400
Message-ID: <E73848D3-F697-41F2-AFF1-948B1D903DD1@michelf.com>
Le 2007-08-12 ? 14:20, Benjamin Hawkes-Lewis a ?crit :

> This might also be an interesting use-case for the ALT element  
> suggested on the public-html list:
>
> <div class="passage">
> <p id="p4858" lang="en">Hello</p>
> <alt for="p4858 lang="fr"><p>Salut</p></alt>
> </div>

That markup looks awfully complicated for the simple use case it's  
trying to solve.

Wouldn't this be better:

     <alt on="lang">
       <p lang="en">Hello</p>
       <p lang="fr">Salut</p>
     </alt>

?

I've included the "on" attribute assuming <alt> would be able to  
define alternatives based on something other than the "lang"  
attribute, although it's not really necessary considering only the  
current use case.


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/
Received on Monday, 13 August 2007 12:14:57 UTC

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