APIs for the text field selections in IE 8 and older