[whatwg] Embedding Elements Should be Structured Inline-Level

Lachlan Hunt lachlan.hunt at lachy.id.au
Wed Mar 14 13:24:16 PDT 2007


Colin Lieberman wrote:
> For the given use case:
> 
> <header>
>    <h1><img src="/images/logo" alt="Company Name"></h1>
>    <object data="flash"></object>
> </header>
> 
> I think <figure> is in appropriate. The spec says: 'The |figure| element 
> represents a paragraph consisting of embedded content and a caption.' 
> and from a semantic point of view, figure seems to connote an illustration 
> or explanatory image.

I thought of using figure, but it currently requires legend to provide a 
caption, but in this case there is no caption.  Even if figure were 
allowed to be used without legend, what would be the point?  That would 
be no better than just adding an extraneous wrapper <div> around the 
object just to work around the content model restrictions.

> I have no problems with images remaining inline only.

I think all embedding elements, including img, should be allowed to be 
used in the same places.  I consider it a mistake that HTML4 allows 
object to be used almost anywhere, but img only inline.

-- 
Lachlan Hunt
http://lachy.id.au/



More information about the whatwg mailing list