Search code examples
javascriptie8-compatibility-modequirks-mode

internet explorer 8 quirks mode remote vs local


Hi I had a problem that i couldn't understand with internet explorer 8. I have a javascript code containing a trailing comma, i know it have to be deleted, but I want to understand something about it. So, here's a part of the reason of the problem, I'm in Quirks mode

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

My problem is, when I open the page in local mode, there is no problem, and the page is displayed correctly. However, when i access it from the remote server, there is errors in the page. Is there a difference in treating Quirks mode when a page is accessed locally or remotely?


Solution

  • the IE using the Quirks Mode per default, when accessing fron the Intranet. You can force it into Standardmode by using this META-Tag:

    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=8\" />