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

Review URL: https://codereview.chromium.org/63223002

git-svn-id: svn://svn.chromium.org/blink/trunk@161864 bbb929c8-8fbe-4397-9dbb-9b2b20218538
5 files changed
tree: 543faeb172838777fdd34e33d2d5ba82fccd6267
  1. third_party/