Skip to content

Commit

Permalink
Remove overly specific algorithms (#1084)
Browse files Browse the repository at this point in the history
We can leave this to the OS, which will simply ignore invalid language tags.
  • Loading branch information
christianliebel committed Jul 6, 2024
1 parent 0d5dc9d commit fdac0b9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,7 @@ <h3>
<li>If |json|["lang"] doesn't [=map/exist=] or if |json|["lang"] is
not a [=string=], return.
</li>
<li>If calling <a data-cite=
"ECMA-402#sec-isstructurallyvalidlanguagetag">IsStructurallyValidLanguageTag</a>
with |json|["lang"] returns `false`, return.
</li>
<li>Set |manifest|["lang"] to the result of calling the
<a data-cite="ECMA-402#sec-canonicalizeunicodelocaleid">CanonicalizeUnicodeLocaleId</a>
abstract operation with |json|["lang"].
<li>[=Map/Set=] |manifest|["lang"] to |json|["lang"].
</li>
</ol>
</section>
Expand Down

0 comments on commit fdac0b9

Please # to comment.