From 68ed9b219fa39d80c5d1503a19568fabfc9f726d Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sun, 11 Nov 2012 19:04:28 -0800 Subject: [PATCH] Fixed another sendkeys bug --- tests/frontend/lib/sendkeys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/frontend/lib/sendkeys.js b/tests/frontend/lib/sendkeys.js index cd5c768e8..9170fe7ea 100644 --- a/tests/frontend/lib/sendkeys.js +++ b/tests/frontend/lib/sendkeys.js @@ -146,7 +146,7 @@ IERange.prototype._nativeSelection = function (){ // returns [start, end] for the selection constrained to be in element var rng = this._nativeRange(); // range of the element to constrain to var len = this.length(); - if (this._doc.selection.type != 'Text') return [len, len]; // append to the end + if (this._doc.selection.type != 'Text') return [0,0]; // append to the end var sel = this._doc.selection.createRange(); try{ return [