af040
11 Jun 2007, 12:39 PM
I noticed the nasty IE workaround for inserting html into tables (as found in DomHelper) only inserts a single node, though the passed html string may include more. I have tried the following code change in DomHelper, and it seems to work well for me in IE6 and 7.
The last lines of insertIntoTable are changed from:
el.insertBefore(node, before);
return node;
to
var next = node.nextSibling;
el.insertBefore(node, before);
while (next) {
node = next;
next = node.nextSibling;
el.insertBefore(node, before);
}
return node;
I am not sure that you would call this a bug, but perhaps it is an improvement?
The last lines of insertIntoTable are changed from:
el.insertBefore(node, before);
return node;
to
var next = node.nextSibling;
el.insertBefore(node, before);
while (next) {
node = next;
next = node.nextSibling;
el.insertBefore(node, before);
}
return node;
I am not sure that you would call this a bug, but perhaps it is an improvement?