Unplanned
Last Updated: 07 Sep 2022 15:47 by Hristo
Hristo
Created on: 07 Sep 2022 15:47
Category: RichTextEditor
Type: Bug Report
0
RadRichTextEditor: 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".
0 comments