Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Issue 262163008: HTMLTableSectionElement.insertRow(0) / HTMLTableRowElement.insertCell(0) do not behave correctly (Closed)

Created:
6 years, 7 months ago by Inactive
Modified:
6 years, 7 months ago
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Visibility:
Public.

Description

HTMLTableSectionElement.insertRow(0) / HTMLTableRowElement.insertCell(0) do not behave correctly HTMLTableSectionElement.insertRow(0) / HTMLTableRowElement.insertCell(0) do not behave correctly according to the HTML specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#dom-tbody-insertrow http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#dom-tr-insertcell Previously, Chromium was adding the new element before the first node, instead of before the first <tr> (for insertRow) or <td> / <th> (for insertCell) element. The new behavior also matches the behavior of Firefox 29. R=arv@chromium.org, tkent@chromium.org BUG=369803 TEST=fast/dom/HTMLTableSectionElement/insertRow-skips-non-tr.html TEST=fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173459

Patch Set 1 #

Patch Set 2 : Fix descriptions #

Total comments: 6

Patch Set 3 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -14 lines) Patch
A LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th-expected.txt View 1 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLTableSectionElement/insertRow-skips-non-tr.html View 1 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLTableSectionElement/insertRow-skips-non-tr-expected.txt View 1 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/html/HTMLTableRowElement.cpp View 1 2 1 chunk +3 lines, -9 lines 0 comments Download
M Source/core/html/HTMLTableSectionElement.cpp View 1 2 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Inactive
6 years, 7 months ago (2014-05-06 20:58:39 UTC) #1
arv (Not doing code reviews)
LGTM
6 years, 7 months ago (2014-05-06 22:08:33 UTC) #2
Inactive
Could an API OWNER take a look as well?
6 years, 7 months ago (2014-05-06 23:44:56 UTC) #3
tkent
This looks a simple bug fix. I don't think it needs API owner approval. https://codereview.chromium.org/262163008/diff/20001/LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html ...
6 years, 7 months ago (2014-05-07 01:18:23 UTC) #4
Inactive
https://codereview.chromium.org/262163008/diff/20001/Source/core/html/HTMLTableRowElement.cpp File Source/core/html/HTMLTableRowElement.cpp (right): https://codereview.chromium.org/262163008/diff/20001/Source/core/html/HTMLTableRowElement.cpp#newcode135 Source/core/html/HTMLTableRowElement.cpp:135: Element* n = children->item(index); On 2014/05/07 01:18:23, tkent wrote: ...
6 years, 7 months ago (2014-05-07 01:33:20 UTC) #5
Inactive
https://codereview.chromium.org/262163008/diff/20001/LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html File LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html (right): https://codereview.chromium.org/262163008/diff/20001/LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html#newcode17 LayoutTests/fast/dom/HTMLTableRowElement/insertCell-skips-non-td-th.html:17: // The insertRow() method must create a td element, ...
6 years, 7 months ago (2014-05-07 01:37:13 UTC) #6
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-07 01:39:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/262163008/40001
6 years, 7 months ago (2014-05-07 01:40:38 UTC) #8
tkent
lgtm
6 years, 7 months ago (2014-05-07 01:46:07 UTC) #9
Inactive
The CQ bit was unchecked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-07 01:53:03 UTC) #10
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-07 01:54:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/262163008/40001
6 years, 7 months ago (2014-05-07 01:55:02 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 03:37:08 UTC) #13
Message was sent while issue was closed.
Change committed as 173459

Powered by Google App Engine
This is Rietveld 408576698