This project is read-only.

IE8 weird issue with <embed> from GetYouTubeEmbedCode


I ran into a strange issue in IE8, where inserting a uTube video (classic player) was causing some formatting issues on my webpage - it looked like there was an unclosed tag as the remaining page content was shoved into the same div as the uTube macro. Looking at the IE Developer Tools showed some weird behavior on the embed tag (screenshot attached)
After a lot of research I was able to fix the problem by adding some attributes to the <object> tag generated in GetYouTubeEmbedCode:
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,29,0"
(Taken from this thread:
After adding these attributes to the <object> element everything started working again - and Developer Tools no longer showed the weird code.
Thought I would post this in case others run into the issue. I'm not sure if it should be added to the core (?) - YouTube's own embed code doesn't have the classid/codebase attributes, so I'm not sure what other effects they might have, but it fixes my issue :)
Or perhaps uTube should start using the new iframe-based embed code.

file attachments