Problem with embedded media and IE8 (Youtube)

Sep 17, 2009 at 1:39 PM

Hi, I've found a problem with embedded Youtube clips and IE8. The problem occures in all themes but the Mobile theme and the browser states the following:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)Timestamp: Thu, 17 Sep 2009 12:31:11 UTC

Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0

URI: http://jarpinger.com/

I checked earlier posts in my blog (posted with BE 1.3) and found that they did not have the same problem. If I remember right the old clips where posted using a "embedded media" buttun, that button is not present in BE 1.5.

There are some significant differences in the code from BE 1.3 and BE 1.5:

BE 1.3 Youtube clip (posted with embedded media button in editor): Gives no error!

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="480" height="344">
<param name="width" value="480" />
<param name="height" value="344" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="src" value="http://www.youtube.com/v/Ej1YRDQcm-I&amp;hl=sv&amp;fs=1" />
<embed type="application/x-shockwave-flash" width="480" height="344" allowfullscreen="true" allowscriptaccess="always" src="http://www.youtube.com/v/Ej1YRDQcm-I&amp;hl=sv&amp;fs=1"></embed></object>

BE 1.5 Youtube clip (pasted as raw HTML since embedded media button is missing): Gives error in IE 8 with all other themes than Mobile!

<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/Q8Lpcbyu4JY&fs=1&border=0&color1=0xFFFFFF&color2=0xFFFFFF"></param>
<param name="allowFullScreen" value="true"></param>
<embed src=http://www.youtube.com/v/Q8Lpcbyu4JY&fs=1&border=0&color1=0xFFFFFF&color2=0xFFFFFF type = "application/x-shockwave-flash" width="480" height="385" allowfullscreen="true"></embed>
</object>

Any ideas?

And tnx for the best blog engine ever!

Coordinator
Sep 17, 2009 at 9:08 PM

Are you using youtube extension or just copy html snippet in the post? If later, try to use extension instead.

http://al.bsharah.com/post/2008/10/25/BlogEngineNET-Extension-YouTube-Video.aspx

Sep 17, 2009 at 11:32 PM
Edited Sep 17, 2009 at 11:47 PM

The problem was a combinatin of lightbox and youtube clips. I disabled lightbox and the errors are gone!