html - IE not working SCRIPT5007 HTML1524 errors, possibly doctype needs to be revised? -


i have application receives input words web app , processes them on backend (can done ruby or node.js) , returns words screen in uppercase. works fine firefox, not work ie.. tried ie 9 & 10. when say, not work mean response not returned webpage , instead user sees timeout error although backend application working.

these types of errors see. failure occurs when function called:

function escapehtml(text) {     return text 

script5007: unable property 'replace' of undefined or null reference index.html

but earlier when page loads, see these errors think may real problem; seems if "text" not able returned because doctype and/or codepage causing problem.

html1524: invalid doctype. shortest valid doctype "". index.html, line 1 character 1 html1114: codepage utf-8 (http header) overrides conflicting codepage iso-8859-1 (meta tag)

i have done several searches show doc type using valid, @ loss why continues problem in ie.

<!doctype html public "-//w3c//dtd html 4.01 transitional//en"                          "http://www.w3.org/tr/html4/loose.dtd">  <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css" /> 


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -