Last Updated: 31 Oct 2018 07:54 by ADMIN
Nikolay Demirev
Created on: 08 Jul 2015 12:35
Category: RichTextBox
Type: Bug Report
RichTextBox: InvalidOperationException is thrown when importing table with colspan="0" from HTML
InvalidOperationException: 'ColumnSpan must be at least 1.' is thrown when importing HTML document with table column containing colspan="0".

The colspan="0" has special meaning according to the HTML specification http://www.w3.org/TR/html401/struct/tables.html:
colspan = number [CN]

This attribute specifies the number of columns spanned by the current cell. The default value of this attribute is one ("1"). The value zero ("0") means that the cell spans all columns from the current column to the last column of the column group (COLGROUP) in which the cell is defined.
Workaround: Preprocess the HTML, and delete all occurrences of colspan="0".