Well, I agree with clause on the whole 'why bother with xhtml/xml mime types...
But some people have legitimate uses for it, so that's cool. Here's the thing about supporting it: using the DOM to create the embed and object tags is a HUGE pain in the ass. Nearly every browser has it's own quirks and things you have to work around to get it working in each one. so because of this it bloats the file size by quite a bit compared to using a simple innerHTML call. Then on top of that, you add in the fact that people building websites that are coded like that are so few, (there's like 50 total that i know of - out of the billions and billions of websites out there) then you start to think that it's not really worth it. Then, as if that's not enough, you hear standards advocates talking about how xhtml (proper) is basically a failed language anyway, and that HTML is really the way to go for web stuff, then you start to think that it's an even bigger waste of time. So as of now, I have no plans to put any work into making SWFObject work with application/xhtml+xml websites. Now, that said, I want to point out that in the last few revs of firefox, they added innerHTML support for application/xhtml+xml websites, which made SWFObject start working. Here's a test page I put together (i just adjusted it to use this new 2.0 update) and you can see it will display the flash movie (at least in firefox). but keep in mind that this isn't exactly 'proper' support and i'm not sure i would rely on it for a big production website. http://blog.deconcept.com/code/flashobjectxml.php Bobby has put together support for xhtml+xml stuff in UFO, and he actually advertises it, so i'd say use that instead of swfobject if you are really worried about that stuff. On Sep 15, 2006, at 5:10 PM, Claus Wahlers wrote: > Michael Stuhr wrote: > >> Claus Wahlers schrieb: >>> Geoff, i'm not entirely sure but i think i read somewhere that >>> SWFObject >>> doesn't work with XHTML documents served as 'application/xhtml >>> +xml'? I'm >>> serving most of my documents with that mimetype (to clients that >>> support >>> it). Is there a problem or am i imagining things? >> why do you do that ? (rhetorical) >> read >> http://www.mozilla.org/docs/web-developer/faq.html#accept >> says can /should >> http://www.w3.org/TR/xhtml-media-types/ >> says te same, but >> http://schneegans.de/web/xhtml/ >> has some good point too. > > http://www.hixie.ch/advocacy/xhtml > He has a point too. > > Cheers! > > -- > claus wahlers > cĂ´deazur brasil > http://codeazur.com.br > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
