Re: Valid use of <embed> in HTML4

David Dorward, Fri, 5 Feb 2010 07:26:53 +0000:
> 
> On 5 Feb 2010, at 04:36, Leif Halvard Silli wrote:
> 
>> Tatham Oddie, Thu, 4 Feb 2010 22:57:18 +1100:
>>> To fix the remaining errors, look at using either Flash Satay
>>> (http://www.alistapart.com/articles/flashsatay) or SWFObject
>>> (http://code.google.com/p/swfobject/).
>> 
>> Here is a way to insert a foreign element into a HTML4 document in a 
>> syntactically valid and User Agent compatible way:
>> 
>> <script type=""><!--</><![CDATA[--></script>
>> <embed src="http://example.org/" ></embed>
>> <!--]]>-->
> 
> The term hideous hack springs to mind.

Your remark about '--' inside HTML comments in the parallel thread made 
me realize that there is (usually) a simpler way:

	<!-- -- -->
	<embed src="http://example.org/" ></embed>
	<!-- -- -->

The sky is the limit:

	<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
	<!-- -- -->
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<!-- -- -->
	<title>title</title>
-- 
leif halvard silli

Received on Friday, 5 February 2010 14:31:52 UTC