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

[whatwg] (IMG / CAPTION discussion)

From: Alexey Feldgendler <alexey@feldgendler.ru>
Date: Wed, 22 Nov 2006 16:59:51 +0600
Message-ID: <op.tjezh1sh1h6og4@feldgendler.plesk.ru>
On Mon, 20 Nov 2006 07:44:07 +0600, Scott Tankard <sptankard at gmail.com> wrote:

> <img id="img1" src="..." title="...">
> That is, an image with a tooltip. While this does contain the wanted benefits
> of nested elements, the obvious increase in sheer size (a bone for those who
> type their code without automation) is coupled with the difficulty of
> matching the tooltip with the element it describes. May I suggest:
> <img id="img1" src="..."> <tip>...</tip> </img>

Unfortunately, you can't do that with <img> in HTML without breaking the parsing of existing pages.

Also, I believe this should be "title", not "tip". The semantics of the markup is that the text is the title of the image, and the desire to dipsplay it as a tooltip is presentational.

Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com
Received on Wednesday, 22 November 2006 02:59:51 UTC

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