html - What specific things cause IE8 to trigger compatibility mode? -



html - What specific things cause IE8 to trigger compatibility mode? -

i've got app under circumstances causes ie8 popup compatibility message , reload in compat mode:

a problem displaying caused net explorer refresh webpage using compatibility view

this rare, , not occur due meta-tags, far can tell. happens response user action alters dom. same problem as: http://superuser.com/questions/215281/how-do-i-stop-i-e-jumping-into-compatability-view, question is: types of things cause this, aid in fixing it.

put way, see site thesitewizard.com, 3rd cause of compatibility mode in ie8 described as:

and, on occasion, other unfathomable, undocumented reason, on pages validated standards-compliant (or, @ least, in release candidate 1).

and question is: unfathomable, undocumented reasons?

after long debugging session (using old school alerts pinpoint failing where), seemingly innocous line of dom manipulation culprit:

document.getelementbyid("literal"+varvalue).style.display = "none";

there no error here, , element apparently found (ie, not garden variety null pointer).

this big scale app, , there lot going on around code. switched following, , apparently has prevented issue:

settimeout(function(){ var layoutel = document.getelementbyid("literal"+varvalue); if (layoutel) layoutel.style.display = "none"; },10)

html internet-explorer-8 ie8-compatibility-mode

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -