Chasing the root cause of memory leak in IE 9 + jQuery 1.7.2

Update ::
https://github.com/openlayers/openlayers/issues/461
OpenLayers-2.12-rc2 + jQuery-1.7.2 Memory leak in Internet Explorer 9

  • Memory leak in Internet Explorer 9 (Browser-Mode: IE9, Document-Mode: IE9 standards) when reloading page continuously.
  • Browser-Mode:IE9, Document-Mode: IE7 and IE8 do NOT have this memory leak.
  • IE 10 Consumer Preview do NOT have this memory leak
  • using jQuery 1.7.2 and OpenLayers-2.12-rc2 a2c556f
  • Loading WITHOUT jQuery does NOT leak memory
  • OpenLayers 2.11 shows the same problem.

Test pages:
https://s3-ap-southeast-1.amazonaws.com/openlayers/index212-rc2-a2c556f.html
OpenLayers closured compiled:
https://s3-ap-southeast-1.amazonaws.com/openlayers/index212-rc2-a2c556f-closured.html
https://s3-ap-southeast-1.amazonaws.com/openlayers/index212-rc1-bce40d9.html
https://s3-ap-southeast-1.amazonaws.com/openlayers/index211.html

 
Chasing the root cause of memory leak in IE 9 + jQuery 1.7.2
1. Compatibility mode - check if this causes memory leak
2. jQuery.ajax() -StackOverflow.com
3. dynamic DOC object with ID attribute StackOverflow.com in IE9 mode. IE9 with compatibility mode doesn't have this problem.
#3 is the cause of the memory leak.

location: