tbody.deleteRow(-1) should remove the last row |
|||
Issue descriptionVersion: 51 canary OS: All What steps will reproduce the problem? (1) Open http://w3c-test.org/html/semantics/tabular-data/the-tbody-element/deleteRow.html What is the expected output? What do you see instead? Expected: No FAIL test Actual: The last one fails. Please use labels and text to provide additional information. https://html.spec.whatwg.org/multipage/tables.html#dom-tbody-deleterow > If index is −1, remove the last element in the rows collection from its parent. We throws an exception now.
,
Mar 8 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/0c4a630b476aa829cacd0b8fb7d716d5d993692e commit 0c4a630b476aa829cacd0b8fb7d716d5d993692e Author: ramya.v <ramya.v@samsung.com> Date: Tue Mar 08 07:11:31 2016 tbody.deleteRow(-1) should never throw an exception As per spec https://html.spec.whatwg.org/multipage/tables.html#dom-tbody-deleterow If index is -1, remove the last element in the rows collection from its parent. Should not throw exception in this case if row is empty. BUG= 592817 Review URL: https://codereview.chromium.org/1771043004 Cr-Commit-Position: refs/heads/master@{#379771} [delete] https://crrev.com/f844066a491c02fba7e0fa27faeb0d639d37c5b1/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow-expected.txt [modify] https://crrev.com/0c4a630b476aa829cacd0b8fb7d716d5d993692e/third_party/WebKit/Source/core/html/HTMLTableSectionElement.cpp
,
Mar 8 2016
,
Mar 8 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by ramy...@samsung.com
, Mar 8 2016Status: Assigned (was: Available)