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

Issue 63223002: Handle (numeric) indexed access of DOMStringMap. (Closed)

Created:
7 years, 1 month ago by sof
Modified:
7 years, 1 month ago
Reviewers:
haraken, tkent, Inactive
CC:
blink-reviews, arv+blink, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Handle (numeric) indexed access of DOMStringMap. As the set of supported property names over DOMStringMap reflects the attributes of an Element prefixed with 'data-', these naturally also include numeric indexes. To allow such index values to be used over DOMStringMap, extend its IDL definition with indexed accessors. Also address an infelicity in comparing attribute names to property names if the property name uses a "-" but isn't followed by an ASCII uppercase letter (e.g. "a-1".) Extended test coverage to check for these variations also. R=tkent@chromium.org BUG=171175 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161864

Patch Set 1 #

Patch Set 2 : Better handling of 'a-<num>' property names #

Patch Set 3 : Add tests for array index-like properties #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -3 lines) Patch
M LayoutTests/fast/dom/dataset-expected.txt View 1 2 5 chunks +52 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/script-tests/dataset.js View 1 2 5 chunks +73 lines, -1 line 0 comments Download
M Source/core/dom/DOMStringMap.h View 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/dom/DOMStringMap.idl View 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/dom/DatasetDOMStringMap.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
sof
Please take a look
7 years, 1 month ago (2013-11-06 21:34:40 UTC) #1
tkent
This CL addresses number-only names cases (data-123), and not names including numbers cases (data-foo1), right? ...
7 years, 1 month ago (2013-11-06 23:18:34 UTC) #2
sof
On 2013/11/06 23:18:34, tkent wrote: > This CL addresses number-only names cases (data-123), and not ...
7 years, 1 month ago (2013-11-07 06:48:56 UTC) #3
sof
On 2013/11/07 06:48:56, sof wrote: > On 2013/11/06 23:18:34, tkent wrote: > > This CL ...
7 years, 1 month ago (2013-11-12 11:36:47 UTC) #4
tkent
Thanks. Does this work correctly with data-123 and data-0123? I'd like to ask binding gurus ...
7 years, 1 month ago (2013-11-12 20:49:34 UTC) #5
sof
On 2013/11/12 20:49:34, tkent wrote: > Thanks. > > Does this work correctly with data-123 ...
7 years, 1 month ago (2013-11-12 21:27:12 UTC) #6
tkent
lgtm > The Storage object also defines indexed accessors this way. Sounds reasonable. Thank you!
7 years, 1 month ago (2013-11-12 22:02:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/63223002/100001
7 years, 1 month ago (2013-11-12 22:03:35 UTC) #8
sof
On 2013/11/12 22:02:42, tkent wrote: > lgtm > > > The Storage object also defines ...
7 years, 1 month ago (2013-11-12 22:08:41 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-11-13 00:10:19 UTC) #10
Message was sent while issue was closed.
Change committed as 161864

Powered by Google App Engine
This is Rietveld 408576698