On 23 Oct 2016, at 4:44, Leif Halvard Silli wrote:
On 23 Oct 2016, at 4:16, Leif Halvard Silli wrote:
1. For instance: Imagine that we have a 3 column row which contains
2 cells with rowspan="2" and one cell with rowspan="1". In such a
case, the <tr> on the next line woujld only contain a single cell
element:
<tr><td rowspan="2">A</td><td rowspan="2">B</td><td>C</td></tr>
<tr><td>X</td></tr>
By the above code can be used to demonstrate the situation in which
XMLmind currently creates an empty <tr> element. (Also, see the
attached file.)
Namely: If, in XMLmind, you decide to delete that X cell, then XMLmind
will allow you to do that - without any warning. The result is an
empty <tr> element. Which renders the table non-conforming. Without
any warning from XMLmind.
What should happens is this: Once you delete the X cell, then the, now
empty, <tr> should also be delted. Plus that the, now, irrelevant (and
now also non-conforming) rowspan="2" attributes should be deleted as
well.
(Btw: It is perhaps debatable whether rowspan="2" should be deleted or
whether they should become rowspan="1". Occationally, I use rowspan as
styling hooks (e.g. td[rowspan]{background:magenta}). For that reason I
would argue that it would be better if they became rowspan="1" rather
than being deleted.)
--
leif halvard silli
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support