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

[whatwg] The IMG element, proposing a CAPTION attribute

From: Alexey Feldgendler <alexey@feldgendler.ru>
Date: Thu, 16 Nov 2006 09:47:26 +0600
Message-ID: <op.ti3bhcu01h6og4@feldgendler.plesk.ru>
On Wed, 15 Nov 2006 09:42:11 +0600, Matthew Paul Thomas <mpt at myrealbox.com> wrote:

>> I believe HTML should have an element for every attribute intended to
>> hold human-readable text. A raw idea can go like this:
>>
>> <img id="img1" src="...">
>> <label for="img1" type="title">...</label>
>>
>> Here, <label> holds a value which should be treated the same way like
>> the title attribute on <img>, except that it can contain nested
>> markup. This would be useful for all attributes defined as %Text in
>> HTML -- in HTML4, these are ABBR, ALT, LABEL, STANDBY, SUMMARY, TITLE.

> You would need to stipulate that title= couldn't contain any <a>
> elements. A link in a tooltip would usually be impossible to click. :-)

Maybe, or maybe not. I'd say "not recommended" because not all ways of rendering such "labels" allow clicking links and other interactive elements like inputs.


-- 
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com
Received on Wednesday, 15 November 2006 19:47:26 UTC

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