Actions
Bug #827
closedBug: som error in Wt.js make the program stop
Start date:
05/17/2011
Due date:
% Done:
0%
Estimated time:
Description
hi,
in Wt.js this code pragment:
this.getSelectionRange = function(elem) {
if (document.selection) { // IE
...
var val = $(elem).val();
...
range.moveEnd("character", val.length);
...
...
val maybe null(in low probability)
following "val.length" code will throw an exception in IE
and make the programe stop
in my observation,
there is always a WSelectionBox in the page
when this error occur.
Files
Updated by Pieter Libin over 13 years ago
Hi,
Thanks for reporting this problem.
I've written a small example which seems to trigger this bug regularly (see attachment).
When clicking <= 10 times on the button, always triggered the problem on Internet Explorer 7.
kind regards,
Pieter
Updated by Pieter Libin over 13 years ago
- Status changed from InProgress to Resolved
Fixed in our local git, the patch will be pushed to the public git soon.
Updated by Koen Deforche over 13 years ago
- Status changed from Resolved to Closed
Actions