Skip to content

Commit

Permalink
Trim dir, lang, display, orientation, text and color values (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
christianliebel committed Sep 5, 2024
1 parent 84b2080 commit 3e1fd57
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ <h3>
<li>If |json|["dir"] doesn't [=map/exist=] or if |json|["dir"] is not
a [=string=], return.
</li>
<li>[=Strip leading and trailing ASCII whitespace=] from
|json|["dir"].
</li>
<li>If [=text-direction list=] doesn't [=list/contain=]
|json|["dir"], return.
</li>
Expand Down Expand Up @@ -549,6 +552,9 @@ <h3>
<li>If |json|["lang"] doesn't [=map/exist=] or if |json|["lang"] is
not a [=string=], return.
</li>
<li>[=Strip leading and trailing ASCII whitespace=] from
|json|["lang"].
</li>
<li>If calling <a data-cite=
"ECMA-402#sec-isstructurallyvalidlanguagetag">IsStructurallyValidLanguageTag</a>
with |json|["lang"] returns `false`, return.
Expand Down Expand Up @@ -677,6 +683,9 @@ <h3>
<li>If |json|["display"] doesn't [=map/exist=] or |json|["display"]
is not a a [=string=], return.
</li>
<li>[=Strip leading and trailing ASCII whitespace=] from
|json|["display"].
</li>
<li>If [=display modes list=] doesn't [=list/contain=]
|json|["display"], return.
</li>
Expand Down Expand Up @@ -736,6 +745,9 @@ <h3>
<li>If |json|["orientation"] doesn't [=map/exist=] or
|json|["orientation"] is not a [=string=], return.
</li>
<li>[=Strip leading and trailing ASCII whitespace=] from
|json|["orientation"].
</li>
<li>If |json|["orientation"] doesn't [=list/contain=] any of the
[=orientation values=], return.
</li>
Expand Down Expand Up @@ -1381,6 +1393,9 @@ <h2>
<li>If |json|[member] doesn't [=map/exist=] or |json|[member] is
not a [=string=], return.
</li>
<li>[=Strip leading and trailing ASCII whitespace=] from
|json|[|member|].
</li>
<li>Let |color| be the result of [=CSS/parsing=] the value of
|json|[member] as a CSS color.
</li>
Expand Down Expand Up @@ -1409,6 +1424,9 @@ <h2>
<li>If |json|[|member|] doesn't [=map/exists=] or |json|[|member|]
is not a [=string=], return.
</li>
<li>[=Strip leading and trailing ASCII whitespace=] from
|json|[|member|].
</li>
<li>Set |map|[member] to the value of |json|[|member|].
</li>
</ol>
Expand Down

0 comments on commit 3e1fd57

Please sign in to comment.