Skip to content

Commit

Permalink
Editorial: Note harmlessness of testing invalid language tags inside …
Browse files Browse the repository at this point in the history
…BestAvailableLocale
  • Loading branch information
ben-allen authored Feb 29, 2024
1 parent ae21121 commit 9d9be77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/negotiation.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ <h1>
1. If _pos_ &ge; 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.
</emu-alg>

<emu-note>
When _locale_ includes a <a href="https://unicode.org/reports/tr35/#BCP47_T_Extension">Unicode Technical Standard #35 Part 1 Core BCP 47 T Extension</a> 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.
</emu-note>
</emu-clause>

<emu-clause id="sec-lookupmatcher" type="abstract operation">
Expand Down

0 comments on commit 9d9be77

Please sign in to comment.