Hi guys,
so ive been building a site using a template and ive been checking it on Firefox, when i got around to checking IE i came up with a JS Error.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 31 Mar 2011 15:47:00 UTC
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://www.mysite.com/js/html5.js
now if i open up the file stated this is whats inside.
I have not edited any of the javascript as i dont know much about it and i am very confused on why there is an error.
Any help would be appreciated
Jon
so ive been building a site using a template and ive been checking it on Firefox, when i got around to checking IE i came up with a JS Error.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 31 Mar 2011 15:47:00 UTC
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://www.mysite.com/js/html5.js
now if i open up the file stated this is whats inside.
Code:
// Create new HTML5 elements ===================================================
// -----------------------------------------------------------------------------
// This script should load before any others. We want the new elements to be
// parsed before pretty much anything happens.
// Plus, IE does not behave otherwise. The cost of being progressive...
// -----------------------------------------------------------------------------
document.createElement("article");
document.createElement("aside");
document.createElement("audio");
document.createElement("canvas");
document.createElement("command");
document.createElement("datalist");
document.createElement("details");
document.createElement("embed");
document.createElement("figcaption");
document.createElement("figure");
document.createElement("footer");
document.createElement("header");
document.createElement("hgroup");
document.createElement("keygen");
document.createElement("mark");
document.createElement("meter");
document.createElement("nav");
document.createElement("output");
document.createElement("progress");
document.createElement("rp");
document.createElement("rt");
document.createElement("ruby");
document.createElement("section");
document.createElement("source");
document.createElement("summary");
document.createElement("time");
document.createElement("video");
I have not edited any of the javascript as i dont know much about it and i am very confused on why there is an error.
Any help would be appreciated
Jon
Last edited: