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

<figure><object> content model (detailed review of Semantics)

From: Simon Pieters <simonp@opera.com>
Date: Mon, 30 Jul 2007 12:38:00 +0200
To: public-html <public-html@w3.org>
Message-ID: <op.tv9w5m1aidj3kv@hp-a0a83fcd39d2>

(This is part of my detailed review of the Semantics and structure of HTML  
elements section.)

The spec says about <object>:

    Content model:
       When used as the child of a figure element, or, when used as a
       figure fallback object: Zero or more param elements, followed by
       either zero or more block-level elements or a single object element,
       which is then considered to be a figure fallback object.
       Otherwise: Zero or more param elements, followed by inline-level
       content.

Why isn't inline-level content allowed when it is child of a figure (or  
when used as a figure fallback object)?

Compare the following snippets:

    <figure><object data=...>foo</object><legend>...</legend></figure>

    <figure><img src=... alt=foo><legend>...</legend></figure>

I consider those to be equivalent when the fallback is used, but currently  
the first is not allowed.

-- 
Simon Pieters
Opera Software
Received on Monday, 30 July 2007 10:38:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:02 GMT