Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Youtube Video on IE8 (XHTML validation)

8:14 am on Jun 13, 2012 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 31, 2009
posts: 124
votes: 3

I'm using following code to post youtube video in xhtml page.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Testing for Youtube</title>
<object type="application/x-shockwave-flash" style="width:640px; height:390px;" data="http://www.youtube.com/v/wMBbiXP5-lo">
<param name="movie" value="http://www.youtube.com/v/wMBbiXP5-lo"></param>
<param name="allowFullScreen" value="true"></param>
<param name="wmode" value="transparent"></param>
<param name="allowscriptaccess" value="always"></param>

and it is perfectly valid at validator.w3.org and working fine on all firefox, chrome and ie9 browser.

But when it comes to ie8 it gives a strange error.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Wed, 13 Jun 2012 08:13:50 UTC

Message: 'null' is null or not an object
Line: 1
Char: 117
Code: 0
URI: http://www.example.com/test/video.html

Can you please suggest why I'm getting this error.

[edited by: incrediBILL at 8:33 am (utc) on Jun 13, 2012]
[edit reason] URL removed, no specifics [/edit]

9:24 am on June 13, 2012 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 31, 2009
posts: 124
votes: 3

I find the culprit...If i remove this code it works fine except youtube suggest to add this in their code

<param name="allowscriptaccess" value="always"></param>

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members