/src/main/java/org/htmlunit/html/HtmlTable.java
for ( int j = 0; j < cell.getColumnSpan( ) ; j++) { for ( int i = 0; i < cell.getRowSpan( ) ; i++) {if ( cell.getRowSpan( ) > 1 || cell.getColumnSpan( ) > 1) {
if ( cell.getRowSpan ( ) > 1 || cell.getColumnSpan ( ) > 1 ) { for ( int i = 0; i < cell.getRowSpan ( ) ; i++ ) { for ( int j = 0; j < cell.getColumnSpan ( ) ; j++ ) {
if (row <= rowIndex && nextRow > rowIndex) { final int nextCol = col + cell.getColumnSpan(); if (col <= columnIndex && nextCol > columnIndex) { return cell; } } <extra_id_0> occupied.add(new Position(row + i, col + j)); } } } col++; }