- if (y == 0) {
- if (match(cell)) {
- if (!matchloc) matchloc = [loc];
- matchloc[1] = loc + cell.colSpan;
- filtercell(table.children.item(x+2), true, action); // colgroup
- }
+ if (y == 0 && match(cell)) {
+ for (var i = loc; i < loc + cell.colSpan; i++) matchloc[i] = true;
+ filtercell(table.children.item(x), true, action); // colgroup