Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Redundant tag in source code when inserting a new row in a table

Deleted user July 5, 2020

When inserting a new row in a table, the source code adds a redundant string of colspan="1".

Steps to reproduce the problem:

  1. Create a 2*2 table.
  2. Click the bottom row. Insert a new row below, so that the bale is 3*2 now.
  3. View the source code. A redundant colspan="1" appears in
    <td colspan="1"><br /></td>

Version 7.5

2 answers

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 10, 2020

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:

  1. Are you facing some kind of issue with tables?
  2. Are tables behaving as expected?

Let us hear from you!

0 votes
Deleted user July 5, 2020

Version is 7.5

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events