[whatwg] The IMG element, proposing a CAPTION attribute

Ian Hickson ian at hixie.ch
Thu Apr 10 23:50:36 PDT 2008


On Thu, 23 Nov 2006, Alexey Feldgendler wrote:
> On Wed, 22 Nov 2006 23:52:41 +0600, Steve Runyon <s.runyon at gmail.com> 
> wrote:
> 
> > One minor point I would clarify: Alexey, you stated that <label 
> > for="XX" type="title"> would replace the "title" attribute.  I assume 
> > you meant that it should *supplement* it, since you wouldn't want to 
> > preclude its use or mess with backward compatibility.
> 
> It would replace the "title" attribute from the semantic POV only. For 
> example, various semantic extractors which know about <label 
> type="title"> should use its content instead of the "title" attribute 
> when they need to know the title of something. For those which don't yet 
> know about <label type="title">, the "title" attribute will provide 
> reasonable fallback.

On Thu, 23 Nov 2006, Alexey Feldgendler wrote:
> On Thu, 23 Nov 2006 01:28:13 +0600, Michel Fortin 
> <michel.fortin at michelf.com> wrote:
> 
> >> I'm not saying it's a caption either. A caption is just one of the 
> >> possible ways of rendering a title.
> 
> > But is a caption limited to a title? Very often, captions contains 
> > some explanations too. I just opened a computer architecture book near 
> > me I knew was full of figures and the first figure I spotted had a 
> > eleven-line caption -- 5 complete sentences.
> 
> Anyway, "caption" is presentational. The semantic relation of that text 
> to the figure, if it's not a title, is most probably "description" or 
> "explanation". It's another problem how to express this relation. 
> Probably a generic form of <label for="..."> without "type" attribute 
> should be used -- something like a <div> without specifying any finer 
> semantic role.
> 
> > I know not everyone use captions like this. But calling captions 
> > "title" pose two problems: it clashes in name with the title 
> > attribute, making both of them a little more ambiguous,
> 
> It's intended that they share the name. The content of <label 
> type="title"> *means* the same as the value of "title" attribute. The 
> same goes for <label type="alt"> vs. "alt" attribute.

I think the <figure> element handles all of the above now.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list