code: function getTableDetails(table) {
          return Tools.map(table.rows, function (row) {
  
            var cells = Tools.map(row.cells, function (cell) {
  
              var rowspan = cell.hasAttribute('rowspan') ? parseInt(cell.getAttribute('rowspan'), 10) : 1;
              var colspan = cell.hasAttribute('colspan') ? parseInt(cell.getAttribute('colspan'), 10) : 1;
  
              return {
                element: cell,
                rowspan: rowspan,
                colspan: colspan
              };
            });
  
            return {
              element: row,
              cells: cells
            };
  
          });
  
        }
docs: Get a matrix of the cells in each row and the rows in the table.