RESOLVED INVALID 166840
[Win] The test fast/forms/validation-message-maxLength.html is failing.
https://bugs.webkit.org/show_bug.cgi?id=166840
Summary [Win] The test fast/forms/validation-message-maxLength.html is failing.
Per Arne Vollan
Reported 2017-01-09 06:34:25 PST
The test diff contains this line: 'FAIL input.validationMessage should be Use no more than one character. Was Use no more than 1 characters.'
Attachments
Patch (2.39 KB, patch)
2017-01-09 06:42 PST, Per Arne Vollan
darin: review+
Per Arne Vollan
Comment 1 2017-01-09 06:42:25 PST
Alex Christensen
Comment 2 2017-01-09 09:20:16 PST
Why is it only failing on windows? Where is the "one" coming from right now? It seems like we shouldn't make a special case for 1
Alexey Proskuryakov
Comment 3 2017-01-09 09:39:54 PST
I don't think that his change is right. 1. Special casing 1 is only correct for some languages; other languages have different rules for plurals. ICU has support for this, although we haven't used it in WebKit directly yet: <http://userguide.icu-project.org/formatparse/messages>. 2. Chris told me that form validation is not enabled on Windows anyway.
Chris Dumez
Comment 4 2017-01-09 09:42:19 PST
Comment on attachment 298351 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=298351&action=review > Source/WebCore/platform/LocalizedStrings.cpp:1153 > + if (maxLength == 1) This is exactly what we tried to avoid on Mac: see https://bugs.webkit.org/show_bug.cgi?id=166712.
Chris Dumez
Comment 5 2017-01-09 09:43:46 PST
(In reply to comment #3) > I don't think that his change is right. > > 1. Special casing 1 is only correct for some languages; other languages have > different rules for plurals. > > ICU has support for this, although we haven't used it in WebKit directly > yet: <http://userguide.icu-project.org/formatparse/messages>. > > 2. Chris told me that form validation is not enabled on Windows anyway. The form validation *UI* is not supported on Windows. However, you can still access the localized validation strings on Windows via input.validationMessage in JS, as demonstrated in the test.
Per Arne Vollan
Comment 6 2017-01-10 05:21:39 PST
(In reply to comment #5) > (In reply to comment #3) > > I don't think that his change is right. > > > > 1. Special casing 1 is only correct for some languages; other languages have > > different rules for plurals. > > > > ICU has support for this, although we haven't used it in WebKit directly > > yet: <http://userguide.icu-project.org/formatparse/messages>. > > > > 2. Chris told me that form validation is not enabled on Windows anyway. > > The form validation *UI* is not supported on Windows. However, you can still > access the localized validation strings on Windows via > input.validationMessage in JS, as demonstrated in the test. Ok, thanks for reviewing, guys :) I'll update the test expectations instead.
Alexey Proskuryakov
Comment 7 2017-01-10 14:15:55 PST
Longer term, we should probably look into having/using stringsdict on Windows too.
Note You need to log in before you can comment on or make changes to this bug.