[Bug 9657] New: Content model of object

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9657

           Summary: Content model of object
           Product: HTML WG
           Version: unspecified
          Platform: All
               URL: http://dev.w3.org/html5/spec/text-level-semantics
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTML5 spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org


The spec defines the content model of <object> as "Zero or more param elements,
then, transparent." Which means that only the content which the parent of
<object> permits, is permitted inside <object>.

http://dev.w3.org/html5/spec/embedded-content-0.html#transparent

Compared with HTML4, then this is valid:

<p>
  <span>
     <object type="image/gif" data="image">
        <p>Falback.</p>
        <p>Backfall.</p>
     </object>
    </span>
</p>

Also, iif you try to validate as  HTML4/XHTML1.x a <p> inside a <p>:

<p>Outer <p>Inner</p> Outer</p>

then the validator.w3.org specifically tells us that this is an error, which
can be corrected by wrapping it inside a object:

]]
document type does not allow element "p" here; missing one of "object", "ins",
"del", "map", "button" start-tag
[[

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 5 May 2010 02:58:58 UTC