[whatwg] Embedding Elements Should be Structured Inline-Level

Le 2007-03-14 ? 1:23, Lachlan Hunt a ?crit :

> Hi,
>   The spec currently defines most embedding elements (img, iframe,  
> embed, object, video and canvas) as strictly inline level and thus  
> only allows them to be used in contexts where strictly inline level  
> content may be used.
>
> I think these elements should be defined as structured inline-level  
> elements.  When used in block level contexts, they should represent  
> paragraphs.

You're right that it's often a little silly to have an image alone in  
its own paragraph. But maybe we could use <figure> for these cases:

     <figure>
       <img>
     </figure>

Ok, this is not conformant with the current spec since it's missing a  
legend, but in my opinion it should be allowed.


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/

Received on Wednesday, 14 March 2007 05:59:33 UTC