it is auto-generated from our embedded system – I’ve tried to tidy it up a little to make it more readable:
I tried this code by creating a csv file with some dummy data and its working fine on IE9. I think something got fixed while tidying up the code. Can you please test this code on your side. In order to figure out the problem I need a single HTML file that can reproduce the bug. And which OS are you using?