From 9d9be7742e8518dfb8c813968db47b5dd7acac7f Mon Sep 17 00:00:00 2001 From: Ben Allen Date: Thu, 29 Feb 2024 14:22:53 -0800 Subject: [PATCH] Editorial: Note harmlessness of testing invalid language tags inside BestAvailableLocale --- spec/negotiation.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/negotiation.html b/spec/negotiation.html index 5adb7c8a..d505210c 100644 --- a/spec/negotiation.html +++ b/spec/negotiation.html @@ -95,6 +95,10 @@

1. If _pos_ ≥ 2 and the character *"-"* occurs at index _pos_ - 2 of candidate, set _pos_ to _pos_ - 2. 1. Set _candidate_ to the substring of _candidate_ from position 0, inclusive, to position _pos_, exclusive. + + + When _locale_ includes a Unicode Technical Standard #35 Part 1 Core BCP 47 T Extension subtag sequence, the truncation in this algorithm may temporarily generate invalid language tags. However, none of them will be returned because _availableLocales_ contains only valid language tags. +