internet explorer - IE9-10 document mode switching on refresh -


i observing following behavior:

  1. navigate page in ie10 (maybe earlier versions)
    • the server serves error page in standards mode.
    • it has html5 doctype , x-ua-compatible meta tag.
  2. hit f5 in browser reload.
    • the server serves ie5 quirks mode page.
    • whatever error happened has been resolved , intended page.
    • <!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
    • <meta http-equiv="x-ua-compatible" content="ie=5">
    • (i don't control this)
  3. the browser not switch document modes might expected
    • ie enters ie9 quirks mode instead of ie5 quirks mode.

i maintaining legacy application many pages beyond control. error page site under control , using html5 standards mode.

is there way ensure quirks mode page loads in intended mode in described scenario? alternative maintain set of quirks mode error pages , write hackish layer detect type of document have been served if error hadn't happened , serve error page in mode. sad.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -