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

[whatwg] The IMG element, proposing a CAPTION attribute

From: Matthew Paul Thomas <mpt@myrealbox.com>
Date: Tue, 14 Nov 2006 19:42:11 -0800
Message-ID: <c636441d87bfcc90fca1a201cdcad54a@myrealbox.com>
On Nov 13, 2006, at 7:43 PM, Alexey Feldgendler 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. :-)

-- 
Matthew Paul Thomas
http://mpt.net.nz/
Received on Tuesday, 14 November 2006 19:42:11 UTC

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