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

Issue 2376593003: Limit scope getter to predefined values (Closed)

Created:
4 years, 2 months ago by rwlbuis
Modified:
4 years, 2 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Limit scope getter to predefined values The scope attribute is limited to four predefined keywords [1], make sure the idl binding will only return one of those keywords or empty string (for default). Behavior matches Safari and Firefox. [1] https://html.spec.whatwg.org/#the-th-element:attr-th-scope Committed: https://crrev.com/f3f53a039bcdda5bfda56f1f5ac5fd6f84b3e704 Cr-Commit-Position: refs/heads/master@{#422144}

Patch Set 1 #

Patch Set 2 : V2 #

Total comments: 2

Patch Set 3 : Address review comment #

Patch Set 4 : Add test #

Total comments: 1

Patch Set 5 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -124 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/element-attribute-js-null.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/element-attribute-js-null-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-tabular-expected.txt View 1 2 3 4 2 chunks +120 lines, -120 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTableCellElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp View 1 2 1 chunk +23 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTableCellElement.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (10 generated)
rwlbuis
PTAL. BTW this also fixes the scope tests in: http://w3c-test.org/html/dom/reflection-tabular.html
4 years, 2 months ago (2016-09-27 22:44:47 UTC) #5
tkent
https://codereview.chromium.org/2376593003/diff/20001/third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp File third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp (right): https://codereview.chromium.org/2376593003/diff/20001/third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp#newcode178 third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp:178: if (equalIgnoringCase(scopeValue, "row")) { equalIgnoringCase should be equalIgnoringASCIICase. https://html.spec.whatwg.org/multipage/infrastructure.html#enumerated-attribute
4 years, 2 months ago (2016-09-28 00:23:08 UTC) #6
rwlbuis
https://codereview.chromium.org/2376593003/diff/20001/third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp File third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp (right): https://codereview.chromium.org/2376593003/diff/20001/third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp#newcode178 third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp:178: if (equalIgnoringCase(scopeValue, "row")) { On 2016/09/28 00:23:08, tkent wrote: ...
4 years, 2 months ago (2016-09-28 13:43:12 UTC) #7
tkent
Do we have tests for scope IDL getter? e.g. IDL scope should return "row" for ...
4 years, 2 months ago (2016-09-28 13:52:04 UTC) #8
rwlbuis
On 2016/09/28 13:52:04, tkent wrote: > Do we have tests for scope IDL getter? e.g. ...
4 years, 2 months ago (2016-09-28 14:06:27 UTC) #9
tkent
On 2016/09/28 at 14:06:27, rob.buis wrote: > reflection-tabular.hml would have all the tests we need ...
4 years, 2 months ago (2016-09-29 02:28:16 UTC) #10
rwlbuis
On 2016/09/29 02:28:16, tkent wrote: > On 2016/09/28 at 14:06:27, rob.buis wrote: > > reflection-tabular.hml ...
4 years, 2 months ago (2016-09-29 13:43:08 UTC) #11
tkent
lgtm https://codereview.chromium.org/2376593003/diff/60001/third_party/WebKit/LayoutTests/fast/table/table-cell-scope-getter.html File third_party/WebKit/LayoutTests/fast/table/table-cell-scope-getter.html (right): https://codereview.chromium.org/2376593003/diff/60001/third_party/WebKit/LayoutTests/fast/table/table-cell-scope-getter.html#newcode8 third_party/WebKit/LayoutTests/fast/table/table-cell-scope-getter.html:8: td = document.createElement('td'); indentation looks bad.
4 years, 2 months ago (2016-09-29 23:15:56 UTC) #12
tkent
I imported reflection-tabular.html this morning, and it was not flaky. This CL may reply on ...
4 years, 2 months ago (2016-09-30 06:51:02 UTC) #13
rwlbuis
On 2016/09/30 06:51:02, tkent wrote: > I imported reflection-tabular.html this morning, and it was not ...
4 years, 2 months ago (2016-09-30 12:27:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2376593003/80001
4 years, 2 months ago (2016-09-30 14:31:10 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/39952)
4 years, 2 months ago (2016-09-30 15:51:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2376593003/80001
4 years, 2 months ago (2016-09-30 15:58:07 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-30 17:35:04 UTC) #23
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 17:38:18 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f3f53a039bcdda5bfda56f1f5ac5fd6f84b3e704
Cr-Commit-Position: refs/heads/master@{#422144}

Powered by Google App Engine
This is Rietveld 408576698