New issue
Advanced search Search tips
Starred by 3 users

Issue metadata

Status: Archived
Owner: ----
Closed: Aug 2015
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug

Sign in to add a comment

tr.insertCell uses wrong default value for parameter index (0 instead of -1)

Reported by, Oct 6 2011

Issue description

Chrome Version       : 14.0.835.187
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 5:
Firefox 4.x:
     IE 7/8/9: OK

What steps will reproduce the problem?
1. Open the attached File and press the button

What is the expected result?
Cells are inserted in the order: Cell1, Cell2

What happens instead?
Cell2 is inserted in front of Cell1


Cause of the problem is that insertCell implementation uses a default value of 0 instead of -1, which is defined by W3:

Quotation: "If index is missing, equal to −1, or equal to the number of items in cells collection, the method must create a td element, append it to the tr element, and return the newly created td element."

UserAgentString: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.187 Safari/535.1

test insertCell.html
337 bytes View Download

Comment 1 by, Oct 6 2011

same applies for table.insertRow:
Project Member

Comment 2 by, Mar 10 2013

Labels: -Area-Undefined
Status: Archived
Archiving unconfirmed issues, which have not been modified (commented on, updated, etc...) in over 2 years.

Sign in to add a comment