How did you even figure that out? That sounds like it would take having IE's source code to figure out.
Check out Dean Edwards IE7 JS script - this was key to making IE6 behave like a modern browser: https://code.google.com/archive/p/ie7-js/
Edit: better way to view: https://github.com/Integralist/Dean-Edwards--IE-7-and-8-and-...