W3C home > Mailing lists > Public > www-validator@w3.org > February 2010

Re: Valid use of <embed> in HTML4

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Fri, 5 Feb 2010 15:31:17 +0100
To: David Dorward <david@dorward.me.uk>
Cc: Tatham Oddie <tatham@oddie.com.au>, 'Cory S' <veneno-games@hotmail.com>, www-validator@w3.org
Message-ID: <20100205153117005977.9473ce78@xn--mlform-iua.no>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:39 GMT