From 59578931c2498f0f8f4577c75591d94acc8aa21c Mon Sep 17 00:00:00 2001 From: tschaub Date: Fri, 2 Mar 2012 18:29:25 -0700 Subject: [PATCH] Making testing in IE a tiny bit less painful. The super handy quick filter that Marc added in 57c16b73458b3c16d28695b74f99bdda38236da5 was causing a bit of trouble in IE. First, `input` was undefined where it was used as a misspelling for `window`. After that, IE choked on the nice CSS3 selector when filtering the test list. It turns out we don't need to be as selective and can treat all anchor elements within the table rows as candidates. --- tests/Test.AnotherWay.baseadditions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Test.AnotherWay.baseadditions.js b/tests/Test.AnotherWay.baseadditions.js index 01887bfb88..2354b34361 100644 --- a/tests/Test.AnotherWay.baseadditions.js +++ b/tests/Test.AnotherWay.baseadditions.js @@ -141,7 +141,7 @@ Test.AnotherWay.quicksearch = function(){ Test.AnotherWay.filterTestList = function(str){ Test.AnotherWay.unfilterTestList(); var re = new RegExp(str, 'i'); - var candidates = document.querySelectorAll('#testtable tr td:nth-child(2) a'); + var candidates = document.querySelectorAll('#testtable tr a'); for (var idx = 0, len = candidates.length; idx