Project

General

Profile

Actions

Bug #624

closed

[wt-3.1.17] some bug in Wt.js

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

Status:
Closed
Priority:
High
Assignee:
Target version:
-
Start date:
11/29/2010
Due date:
% Done:

0%

Estimated time:

Description

see this fragment in Wt.js:

this.contains = function(w1, w2) {
  var p = w2.parentNode;

  while (p != null && p.tagName.toLowerCase() != "body") {
    if (p == w1)
      return true;
    p = p.parentNode;
  }
  return false;
}

in some cases

the "w2" could be null

this function will throw an expection

and will be catched by "handleResponse" function

"Wt internal error" message with "80020101 error" will be shown in IE

the same type error also be shown in FF.

after I change the code like this:

this.contains = function(w1, w2) {
  if (!w2)
    return false;

  var p = w2.parentNode;

  while (p != null && p.tagName.toLowerCase() != "body") {
    if (p == w1)
      return true;
    p = p.parentNode;
  }
  return false;
}

the "Wt internal error" is never shown.

Actions #1

Updated by Koen Deforche over 13 years ago

  • Status changed from New to Closed
  • Assignee set to Koen Deforche

Hey,

We fixed this release-stopper bug in a updated 3.1.7a release.

Thanks,

koen

Actions

Also available in: Atom PDF