Silverlight, Firefox, Inline Xaml, and an Xhtml Doctype
So as I’ve played around with Silverlight the last few days, I’ve found a problem. It is supposedly an issue with Firefox, where Firefox doesn't parse some elements correctly when the doctype is set to Xhtml. Essentially, if you have Xaml inlined for Silverlight in a page, if the page has an Xhtml doctype, and you're using Firefox, Silverlight will not work for you. This is a problem...
I was quite irked today when I came across this. I did a little searching and found a little discussion on this in the MSDN Forums. The proposal was to remove the Xhtml doctype. That proposal doesn't sit well with me. I don't like the idea of changing a doctype just because a browser has a bug. So, I came up with my own proposal for dealing with this situation. It is more work than just removing the doctype, but I think it is a better solution regardless. Any suggestions or critiques are welcomed.