You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2010/07/26 10:48:48 UTC

Bug in wicket-ajax.js?

Hi!

I think this is a bug in js for IE:

Wicket.replaceOuterHtmlIE = function(element, text) {
........

tempDiv.innerHTML = '<table style="display: none">' + text + '</table>';
 tempParent = tempDiv.getElementsByTagName(tn).item(0).parentNode;
}


::::

When the only row of a <table> is removed,
tempDiv.getElementsByTagName(tn).item(0).parentNode results in a
nullpointer or "object required" exception.

Does someone agree?

So I would add a null check and use
getElementsByTagName('table').item(0) in such case?

**
Martin