Skip to content

Commit

Permalink
Check structural validity of language tags in language maps
Browse files Browse the repository at this point in the history
  • Loading branch information
christianliebel committed Aug 25, 2024
1 parent c5dc9ae commit b9cee41
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,12 @@ <h3>
|normalizedValue|["dir"], [=map/set=] |normalizedValue|["dir"] to
|manifest direction|.
</li>
<li>If calling <a data-cite=
"ECMA-402#sec-isstructurallyvalidlanguagetag">IsStructurallyValidLanguageTag</a>
with |normalizedValue|["lang"] or calling <a data-cite=
"ECMA-402#sec-isstructurallyvalidlanguagetag">IsStructurallyValidLanguageTag</a>
with |languageTag| returns `false`, return.
</li>
<li>[=Map/Set=] |map|[|member|][|languageTag|] to
|normalizedValue|.
</li>
Expand Down Expand Up @@ -1494,10 +1500,18 @@ <h3>
</li>
<li>[=Map/Set=] |map|[|member|] to a new [=ordered map=].
</li>
<li>[=List/For each=] |languageTag:string| of |languageTags|, run
[=process image resources=], passing |languageMap|[|languageTag|]
as the [=list=] of [=image resources=], |map|[|member|], |manifest
URL|, and |languageTag| as the member.
<li>[=List/For each=] |languageTag:string| of |languageTags|:
<ol>
<li>If calling <a data-cite=
"ECMA-402#sec-isstructurallyvalidlanguagetag">IsStructurallyValidLanguageTag</a>
with |languageTag| returns `false`, [=iteration/continue=].
</li>
<li>Run [=process image resources=], passing
|languageMap|[|languageTag|] as the [=list=] of [=image
resources=], |map|[|member|], |manifest URL|, and |languageTag|
as the member.
</li>
</ol>
</li>
</ol>
</section>
Expand Down

0 comments on commit b9cee41

Please sign in to comment.