Improves handling of the <select> html element.