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

[whatwg] 2.20.2 The command element - icon attribute

From: Matthew Raymond <mattraymond@earthlink.net>
Date: Thu, 02 Mar 2006 02:18:18 -0500
Message-ID: <44069C3A.8040502@earthlink.net>
ROBO Design wrote:
> I'd highly recommend not to define the icon attribute, or any other  
> attribute with possible relation to presentation. This fuels accusations  
> that what this specification defines is not "as semantical as" the XHTML 2  
> specification (I've read some "WHATWG bashing" in some blog posts).
> 
> Defining icons and other presentational endeavours must definitely be left  
> to CSS WG.

   I think the idea is that the <command> element is defining the icon
to appear for any element that has a |command| attribute defined. That
said, you could probably replace it with the following CSS:

| command#myID::before, *[command="myID"]::before {
|   content: url(icon.png);
| }

   So, I guess I'm inclined to agree with you...
Received on Wednesday, 1 March 2006 23:18:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:45 UTC