W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: can an img be a link within figure?

From: Henri Sivonen <hsivonen@iki.fi>
Date: Fri, 6 Jul 2007 10:51:10 +0300
Message-Id: <B526D2F9-15FD-42BA-A154-DC9104E606FC@iki.fi>
Cc: Thomas Broyer <t.broyer@gmail.com>, public-html@w3.org
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>

On Jul 6, 2007, at 04:31, Lachlan Hunt wrote:

> Thomas Broyer wrote:
>> 2007/7/5, Ben Boyle:
>>> <figure>
>>> <a href="some link"><img src="some image" ...></a>
>>> <legend>optional legend</legend>
>>> </figure>
>> I propose allowing <a> as a child of <figure> in the case it has only
>> one child which is an <img> (with no "significant text" around it).

Makes sense, except for the "significant text" part. (Inter-element  
white space is allowed anyway. "Significant text" is a different  
concept and not used in a context like this.)

> It would be better to change the content model to allow for any  
> strictly inline-level content, as long as there is at least one  
> embedded content element as a descendant.

Why?

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Friday, 6 July 2007 07:51:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:46 UTC