Hi,
Not sure if it is best way to get around this problem. But I would have accomplished this problem by detecting which version client is using and then writing the appropiate code to fix it.
Check here for detecting client browser and which version it is using.
[
Browser Detection using js]
This might help you,
Thanks,
Arindam D Tewary