Luke Lutman schrieb:
> This probably won't be a popular opinion, but fwiw ...
>
> Although the W3C would like us all to stick our heads in the sand and
> pretend <embed /> doesn't exist, it is (imho) the way to go -- it's a de
> facto standard. <embed />, by itself, works with all the browsers on
> jQuery's support list (it even works with express install in IE). In
> practice, you don't need to use <object /> at all.
>
> If you're worried about validation, you can use js to insert the <embed
> /> (which you should probably do anyway to avoid the whole ie/eolas fiasco).
>
> Luke
>
> P.S. I'm working on a jQuery plugin along the lines of UFO or SWFObject,
> which I'll post soon :-)
I wonder who is sticking the sand in the head? In 2006 there's really no
need to stick to embed. A proper and even valid object is also supported
by all browsers on jQuerys support list (and more).
See it the other way round. Sooner or later the legacy embed tag will
not be supported anymore by newer browsers as the web moves on. Think of
mobile devices etc.
With object you can also have a reasonable fallback in case the plugin
is not supported:
<object ...>
<p><a href="...">Download plugin</a></p>
</object>
Or even better:
<object ...>
<p><a href="some.mp3">Download MP3</a></p>
</object>
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/