ce icon indicating copy to clipboard operation
ce copied to clipboard

Incorrect rendering of Spreadsheet created using HTML table having Nested tables.

Open aman-in-java opened this issue 5 years ago • 1 comments

Please refer to this pen.

I am trying to create a Jexcel Spreadsheet using HTML tables, Each cell is of type HTML type. If a cell has a table in it, all <tr> elements of this table are rendered as Spreadsheet rows.

After debugging the issue. I found that the following line of code is causing the problem. var content = el.querySelectorAll('table > tr, tbody tr');.

This line of code selects all <tr> elements under the tbody tag, irrespective of the nested HTML table.

aman-in-java avatar Nov 27 '20 03:11 aman-in-java

Have submitted pull request #1290 with a fix for this. Please review and merge if suitable.

manish-in-java avatar Jan 15 '21 09:01 manish-in-java