W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2008

[widgets] icon text

From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Wed, 18 Jun 2008 09:36:18 +1000
Message-ID: <b21a10670806171636t6e192540o7a6a2400605176a9@mail.gmail.com>
To: "Web Applications Working Group WG" <public-webapps@w3.org>

This is a proposal to add alternative text to <icon> element. As with
the alt attribute in HTML, the alternative text could be used as
fallback content, or for context where an image icon does not fit or
is unsuitable, and for use by assistive technologies.

Proposal 1:
<icon src="sunny.gif" alt="sunny and warm"/>

Proposal 2:
<icon src="sunny.gif" label="sunny and warm"/>

Proposal 3:
<icon src="sunny"><p xmlns="http://.../xhtml/"><span>Sunny</span> with
a chance of showers. High: 22, Low: 23</p>

Adding one of the above would also require a change to the Widgets API
spec. In the case of 1 and 2, the Widget API spec could be enhanced
with an appropriate property or method (eg. icon.alt = "something" or
setText() ).  In the case of proposal 3, icon could support the
innerHTML() method.

Kind regards,
Marcos


-- 
Marcos Caceres
http://datadriven.com.au
http://standardssuck.org
Received on Tuesday, 17 June 2008 23:36:54 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:26 GMT