I reproduced the changes from commit c43fdb600f0a1a134a343583432680e189182c59 to resolve an error in IE8.  That commit cannot be cherry-picked because selection.js has been refactored and moved.