homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Youtube Video on IE8 (XHTML validation)

5+ Year Member

Msg#: 4464784 posted 8:14 am on Jun 13, 2012 (gmt 0)

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]



5+ Year Member

Msg#: 4464784 posted 9:24 am on Jun 13, 2012 (gmt 0)

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>

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved