Re: [XHTML 2] 24.1 OBJECT declare and "completed loading" (PR#7751)

"Brad Pettit" <bradp@microsoft.com> wrote:

>What if the Xhtml document is not well-formed? Even a non-validating Xml
>parser is required to check for well-formedness before determing whether
>the document is xml:
>http://www.w3.org/TR/2000/REC-xml-20001006#sec-conformance 
>
>Document well-formedness -- or the lack thereof -- might not be
>determined until the end of the content is reached. Is it wise to be
>executing <object> elements -- particularly those that reference code
>external to the browser -- as they are encountered during the process of
>loading a potentially incomplete or incorrect document? 

Embedding external HTML with the object element may only reference a
full html document, not a code fragment. Don't confuse embedding another
html document with something like server side inclusion.

A xml parser must therefore parse an embedded html document as a
separate document, if it is also an xml document then well formdness
must be established by the parser independently from the document in
which it is embedded.

-- 
Spartanicus

Received on Wednesday, 1 June 2005 07:20:03 UTC