Bug when creating select options using innerHTML in IE

Recently I was creating some code that dynamically changes the options in a select element. In the first draft I decided to us innerHTML for speed. Using innerHTML for this is very straight forward. You build your string of options and dump them into the select. Unfortunately the draw back…