Project

General

Profile

Actions

Bug #827

closed

Bug: som error in Wt.js make the program stop

Added by DQ Qin over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Pieter Libin
Target version:
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

hello.C (1002 Bytes) hello.C Pieter Libin, 05/18/2011 01:24 PM
Actions #1

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

Actions #2

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.

Actions #3

Updated by Koen Deforche over 13 years ago

  • Target version set to 3.1.10
Actions #4

Updated by Koen Deforche over 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF