Paged.js crashes on breaking table row with colspan between pages
In example1.html, we have table that is pushed nearly at the end of the page. Page break resolving happens at the first row, but because of colspan
, paged.js crashes with following error:
Rendering: Page 1(node:28780) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at Function.from (<anonymous>)
at Layout.findOverflow (<anonymous>:1763:36)
at Layout.findBreakToken (<anonymous>:1654:24)
at Layout.renderTo (<anonymous>:1336:27)
at Page.layout (<anonymous>:2108:47)
at Chunker.layout (<anonymous>:2863:29)
at async Chunker.renderAsync (<anonymous>:2784:17)
Also, in example2.html, when colspan
is by accident bigger than it should (making row with more cells than the rest of the table), or there is not enough cells in a row compared with the rest of the table, paged.js crashes with following error:
Rendering: Page 1(node:42288) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: node.getAttribute is not a function
at findElement (<anonymous>:1023:20)
at Layout.createBreakToken (<anonymous>:1609:22)
at Layout.findBreakToken (<anonymous>:1665:23)
at Layout.renderTo (<anonymous>:1336:27)
at Page.layout (<anonymous>:2108:47)
at Chunker.layout (<anonymous>:2863:29)
at async Chunker.renderAsync (<anonymous>:2784:17)
Paged.js version: 0.2.0
Paged.js-cli version: 0.1.3