Skip to content

Commit 65042fe

Browse files
committed
support multiple row spans at once
1 parent b141b59 commit 65042fe

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

HTMLCS.Util.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,8 +1111,7 @@ _global.HTMLCS.util = function() {
11111111
if (thisCell.nodeType === 1) {
11121112
// Skip columns that are skipped due to rowspan.
11131113
if (skipCells[rownum]) {
1114-
while (skipCells[rownum][0] === colnum) {
1115-
skipCells[rownum].shift();
1114+
while (skipCells[rownum][colnum]) {
11161115
colnum++;
11171116
}
11181117
}
@@ -1130,7 +1129,7 @@ _global.HTMLCS.util = function() {
11301129
}
11311130

11321131
for (var j = colnum; j < colnum + colspan; j++) {
1133-
skipCells[i].push(j);
1132+
skipCells[i][j] = true;
11341133
}
11351134
}
11361135
}

0 commit comments

Comments
 (0)