From e385e78310bfb2cf3eeaecb9ce7b66d97ee6fb2b Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sun, 11 Nov 2012 18:21:43 -0800 Subject: [PATCH] IE9 doesn't need special IE treatment and works much better with the W3C sendkeys methods --- tests/frontend/lib/sendkeys.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/frontend/lib/sendkeys.js b/tests/frontend/lib/sendkeys.js index 7e789c09b..cd5c768e8 100644 --- a/tests/frontend/lib/sendkeys.js +++ b/tests/frontend/lib/sendkeys.js @@ -30,8 +30,8 @@ bililiteRange = function(el, debug){ var ret; if (debug){ ret = new NothingRange(); // Easier to force it to use the no-selection type than to try to find an old browser - }else if (document.selection){ - // Internet Explorer + }else if (document.selection && !document.addEventListener){ + // Internet Explorer 8 and lower ret = new IERange(); }else if (window.getSelection && el.setSelectionRange){ // Standards. Element is an input or textarea