[whatwg] My case for Ruby-elements

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