Closed Bug 188635 Opened 23 years ago Closed 23 years ago

DOM2 HTMLTableRowElement supports -1 as insertCell argument

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 30419

People

(Reporter: taralx, Assigned: jst)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212 DOM2 permits the passing of -1 to insertCell to append a cell to the end of a table row. Reproducible: Always Steps to Reproduce: 1. Open a document with a table in it. 2. Attempt to add a row with .insertCell(-1) 3. See exception thrown.
As you could see, InsertCell(-1) and InsertRow(-1) working properly. Maybe you apply InsertCell to HTMLTableElement? It is impossible to add Cell to table, possible only to row (see http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-68927016)
I tbink this bug should be resolved as duplicate of "Table methods "insertRow()"/"insertCell()" should accept (-1) value to indicate "append at end" *** This bug has been marked as a duplicate of 30419 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
That bug was closed INVALID. If you want to dupe this one, at least reopen that one.
I know, but do you realy think IncertCell is not working? If yes, please made an example or give a URI, and I reopen bug 30419.
Yes. It doesn't work. Your attachment doesn't work, and bug 30419 was never fixed. AND I quoted the relevant section of the code. What more do you want? I wouldn't have opened this bug if insertCell was working.
Okay, nevermind. It has been fixed in the trunk. I checked 1.0 branch by accident.
Status: RESOLVED → VERIFIED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: