Fix selection test for IE <= 8