fix #962 autoselect is called asynchronously after focus()

Fix required as test.aria.widgets.autoselect.programmatic.AutoSelect failed on IE 11,
as .focus() is asynchronous on this browser.

Close #950