Add use counters for caseless matching of radio groups and image maps |
||
Issue descriptionIn https://github.com/whatwg/html/issues/1666 we are discussing whether we can remove the spec's use of "compatibility caseless" matching for radio groups and image maps. "Compatibility caseless" is a type of Unicode case-insensitive matching. It turns out that nobody actually implements "compatibility caseless" exactly, but Chrome, Firefox, and Edge all do implement some form of Unicode case-insensitive matching. WebKit does completely case-sensitive matching for radio groups, but not for image maps. It would be good to add use counters to see how often Chrome sees radio button names and image map hash names that are deemed "the same", but are not byte-for-byte equal. If this happens rarely, we can just move to case-sensitive matching in the spec and in Chrome, thus matching WebKit and simplifying everything.
,
Aug 22 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/ef41af2efc6bff8baf0b9f4872e1cb8809de2072 commit ef41af2efc6bff8baf0b9f4872e1cb8809de2072 Author: tkent <tkent@chromium.org> Date: Mon Aug 22 21:31:07 2016 Add UseCounters for name attribute matching of <map> and <input type=radio> https://github.com/whatwg/html/issues/1666 We'd like to know if Unicode caseless matching is really necessary for them. This CL adds the following counters of cases where: - Exact codepoint matching is enough - ASCII-caseless matching is enough - Otherwise for each of <map> and <input type=radio>. BUG= 639477 Review-Url: https://codereview.chromium.org/2264943002 Cr-Commit-Position: refs/heads/master@{#413538} [modify] https://crrev.com/ef41af2efc6bff8baf0b9f4872e1cb8809de2072/third_party/WebKit/Source/core/dom/TreeScope.cpp [modify] https://crrev.com/ef41af2efc6bff8baf0b9f4872e1cb8809de2072/third_party/WebKit/Source/core/frame/UseCounter.h [modify] https://crrev.com/ef41af2efc6bff8baf0b9f4872e1cb8809de2072/third_party/WebKit/Source/core/html/forms/RadioButtonGroupScope.cpp [modify] https://crrev.com/ef41af2efc6bff8baf0b9f4872e1cb8809de2072/tools/metrics/histograms/histograms.xml
,
Aug 22 2016
Added the following counters: - MapNameMatchingStrict - MapNameMatchingASCIICaseless - MapNameMatchingUnicodeLower - RadioNameMatchingStrict - RadioNameMatchingASCIICaseless - RadioNameMatchingCaseFolding |
||
►
Sign in to add a comment |
||
Comment 1 by tkent@chromium.org
, Aug 22 2016Owner: tkent@chromium.org
Status: Started (was: Available)