ce
ce copied to clipboard
Incorrect rendering of Spreadsheet created using HTML table having Nested tables.
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.
Have submitted pull request #1290 with a fix for this. Please review and merge if suitable.