When inserting a new row in a table, the source code adds a redundant string of colspan="1".
Steps to reproduce the problem:
<td colspan="1"><br /></td>
Version 7.5
Hello @[deleted] !
As I understand, you noticed that after adding a new row in a table, the colspan tag is added with the value of 1 to that newly added row.
The colspan default value is indeed 1, as specified by the HTML standard. However, I was unable to find, within the HTML standard, an article that specifies if the tag should be either skipped or explicitly used when the desired value is 1.
I found, however, that tables may contain the colspan tag:
The td and th elements may have a colspan content attribute specified, whose value must be a valid non-negative integer greater than zero and less than or equal to 1000.
As I understand, even by using the colspan tag with the value of 1 it falls within the specification for HTML.
The website I read for the standard definition is this:
With this in mind, I would like to understand a few points. Here they are:
- Are you facing some kind of issue with tables?
- Are tables behaving as expected?
Let us hear from you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.