What in an asp.net web site could prevent an html page opening in quirks mode? -


we use iis8 our web server. have old html page renders in quirks mode (which want) in ie10 when in virtual directory. not have tag force quirks mode. if page rendered within folder in asp.net web site not render in quirks mode , therefore renders incorectly.

we assume we've changed in web site configuration prevents page rendering in quirks mode default. can suggest might be?

to avoid writing essay on why we're doing we're doing let me we'd prefer not have change html page force quirks mode, or change in way in fact. mode convenient establish change has caused page not render in quirks mode default , make change in application installer change our customers' web sites automatically.

edit: forgot mention in both cases i'm using compatibilty mode.

edit 2: we're targetting .net 4.5 , i've read stuff online says disables quirks mode.

edit 3: seems switched 4.5 before problem became apparent.

edit 4: answer twofold. prompted andrew morton's comment did global search x-ua-compatible , found response.addheader("x-ua-compatible", "ie=edge"); in application_beginrequest handler. however, predates problem several years. must other change more recentlly combined has caused effect. anyway, we've spent enough time on , have decided add tag html force quirks mode.

from ie blog:

ie10’s html5 quirks mode used pages without doctype or legacy doctype defined in html5.

that means thing causing quirks mode page itself. if don't want change it, can't force quirks mode. there no server side fix this. client-side.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -