From 558ab404df04ea49fde606f93a44b3f5cc45e510 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 28 Aug 2015 13:19:24 +0200 Subject: [PATCH] Make 's deleteCell() and 's deleteRow() respect -1 Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=29014 Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=29015 --- source | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/source b/source index bac8d40388c..d47bffe82eb 100644 --- a/source +++ b/source @@ -36911,13 +36911,19 @@ the cell that corresponds to the values of the two dice. tr element in the rows collection, and finally must return the newly created tr element.

-

The deleteRow(index) - method must remove the indexth element in the rows collection from its parent. If index is - less than zero or greater than or equal to the number of elements in the rows collection, the method must instead throw an +

The deleteRow(index) method + must, when invoked, act as follows: + +

If index is less than −1 or greater than the number of elements in + the rows collection, the method must throw an IndexSizeError exception.

+

If index is −1, remove the last element in the rows collection from its parent.

+ +

Otherwise, remove the indexth element in the rows collection from its parent.

+ @@ -37171,12 +37177,18 @@ the cell that corresponds to the values of the two dice. must return the newly created td element.

The deleteCell(index) - method must remove the indexth element in the cells collection from its parent. If index is less - than zero or greater than or equal to the number of elements in the cells collection, the method must instead throw an + method must act as follows:

+ +

If index is less than −1 or greater than the number of elements in + the cells collection, the method must throw an IndexSizeError exception.

+

If index is −1, remove the last element in the cells collection from its parent.

+ +

Otherwise, remove the indexth element in the cells collection from its parent.

+ @@ -116631,6 +116643,7 @@ INSERT INTERFACES HERE David Remahl, David Smith, David Woolley, + David Zbarsky, DeWitt Clinton, Dean Edridge, Dean Edwards,