I recently had to develop a suggestion feature for an input-field where the first best match would be filled in and the rest of the word selected so that the user can continue writing if that’s not the correct word. At first this seemed like a straight-forward solution but then I realized that to select text programmatically in the document isn’t exactly straight forward (neither is searching inside an array, but that’s another story).
The reason that it isn’t straight-forward is that like som many other features of web technology it’s implemented in different same ways in Internet Explorer as it is in the rest of the major (and W3C compliant) browsers.