-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variation allowed in canonicalizing language tags--necessary? #111
Comments
@littledan this piece precedes my time as the editor, maybe @NorbertLindenberg knows better. |
For anyone else following along, the relevant part seems to be (and this is followed in the second link by a bunch of people saying LGTM)
Seems like this all ties in pretty closely with another question: is it a good thing to make BCP 47 extensions be conceptually "open world", that implementations may add more, and unknown extensions are treated as irrelevant? I raised this question on #113; I'd prefer that the standard explain exactly which BCP 47 extensions must be supported by ECMA 402 and allow only those, with an API like In the case of canonicalizing the calendar, this isn't a place where some implementations support it and others are unaware so can't be expected to canonicalize; it is explicitly required. So I don't see a big reason to allow variation here. cc @allenwb who originally raised this issue. |
I'm wondering how useful the ability to have this variation is to implementers. Due to @jungshik, we implement in V8, but maybe Mozilla makes another choice; what choices do other browsers prefer and why? @jswalden @zbraniecki @thetalecrafter @bterlson |
I believe we'd prefer to remove the variation here and have it strictly defined. |
I also like to remove the variation and define the behavior strictly. |
@littledan @zbraniecki do you think we need an actual proposal? or just a PR where we can discuss the details? |
See this comment #110 (comment) . Perhaps the sort of tightened requirements discussed in this thread should be part of the HTML spec rather than imposing them upon all platforms that might want to host ECMA-402. |
@caridy IMO a PR should be sufficient; this seems analogous to several other cases where ECMA 262 pulled in a needs-consensus PR. In this case, since the spectrum of options are represented by shipping browsers, we have implementation experience already. |
It sounds like implementations are not going to expose hooks for hosts. I think then the specification should not pretend such hooks exist either and just define how implementations should work and disallow the variability. Such fiction only makes the requirements harder to follow and doesn't end up adding value. (If indeed at some point implementations are planning on having such variability, we can reconsider.) |
Next step here? Anyone wants to champion that? |
@zbraniecki I think you'd be a natural champion, with the compatibility information that you've already collected. (If no one else comes along, I could take up writing a PR, but it might not be for two or three months that I really have a chance.) |
This issue has been fixed with the move to refer to UTS 35 for all language tag canonicalisation steps. |
I agree that we've fixed this issue with the UTS 35 reference. |
In tc39/test262#774 , it as noticed that CanonicalizeLanguageTag makes canonicalization optional
I don't see the value added for making canonicalization optional; seems like things would be better either requiring or prohibiting canonicalization. Thoughts? cc @jungshik
The text was updated successfully, but these errors were encountered: