Re: violates XHTML. Yes. Agreed. My understanding is that it was a best case scenario for the SWFObject team to avoid that error you mention. I admit, I might be on the lesser represented side on this issue, but I tend not to see the point of adhering to a standard that no browser actually implements particularly well vs. generating code that does the job. Based on that, I suppose you could guess that I'm not an XHTML purist, and I admire the folks who are --- i just tend to lend greater weight to the "does it work" test vs. the "does it validate" test.
My apologies for continuing a dead thread. I'm glad you were able to get things working on your end? Vincent On Wed, Mar 11, 2009 at 7:06 PM, Michael Pelz-Sherman < [email protected]> wrote: > > Just to follow up on this briefly: > > On Mar 11, 2009, at 9:58 AM, Vincent Polite wrote: > > > At its heart, does swfobject.js use document.write in its code? I > > believe it does, but without some specifics as to why that's a bad > > thing, I'm not sure how to help you in terms of providing guidance > > or an alternative. > > Based on my reading of the code, swfobject.js does use document.write > in one place, but for a very specific purpose (to "Avoid a possible > Operation Aborted error"), not to generate markup. > > Using document.write() to generate markup violates XHTML. See > http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite > . > > - Michael > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
