Skip to content

Commit 3e1fd57

Browse files
Trim dir, lang, display, orientation, text and color values (#1140)
1 parent 84b2080 commit 3e1fd57

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

index.html

+18
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,9 @@ <h3>
507507
<li>If |json|["dir"] doesn't [=map/exist=] or if |json|["dir"] is not
508508
a [=string=], return.
509509
</li>
510+
<li>[=Strip leading and trailing ASCII whitespace=] from
511+
|json|["dir"].
512+
</li>
510513
<li>If [=text-direction list=] doesn't [=list/contain=]
511514
|json|["dir"], return.
512515
</li>
@@ -549,6 +552,9 @@ <h3>
549552
<li>If |json|["lang"] doesn't [=map/exist=] or if |json|["lang"] is
550553
not a [=string=], return.
551554
</li>
555+
<li>[=Strip leading and trailing ASCII whitespace=] from
556+
|json|["lang"].
557+
</li>
552558
<li>If calling <a data-cite=
553559
"ECMA-402#sec-isstructurallyvalidlanguagetag">IsStructurallyValidLanguageTag</a>
554560
with |json|["lang"] returns `false`, return.
@@ -677,6 +683,9 @@ <h3>
677683
<li>If |json|["display"] doesn't [=map/exist=] or |json|["display"]
678684
is not a a [=string=], return.
679685
</li>
686+
<li>[=Strip leading and trailing ASCII whitespace=] from
687+
|json|["display"].
688+
</li>
680689
<li>If [=display modes list=] doesn't [=list/contain=]
681690
|json|["display"], return.
682691
</li>
@@ -736,6 +745,9 @@ <h3>
736745
<li>If |json|["orientation"] doesn't [=map/exist=] or
737746
|json|["orientation"] is not a [=string=], return.
738747
</li>
748+
<li>[=Strip leading and trailing ASCII whitespace=] from
749+
|json|["orientation"].
750+
</li>
739751
<li>If |json|["orientation"] doesn't [=list/contain=] any of the
740752
[=orientation values=], return.
741753
</li>
@@ -1381,6 +1393,9 @@ <h2>
13811393
<li>If |json|[member] doesn't [=map/exist=] or |json|[member] is
13821394
not a [=string=], return.
13831395
</li>
1396+
<li>[=Strip leading and trailing ASCII whitespace=] from
1397+
|json|[|member|].
1398+
</li>
13841399
<li>Let |color| be the result of [=CSS/parsing=] the value of
13851400
|json|[member] as a CSS color.
13861401
</li>
@@ -1409,6 +1424,9 @@ <h2>
14091424
<li>If |json|[|member|] doesn't [=map/exists=] or |json|[|member|]
14101425
is not a [=string=], return.
14111426
</li>
1427+
<li>[=Strip leading and trailing ASCII whitespace=] from
1428+
|json|[|member|].
1429+
</li>
14121430
<li>Set |map|[member] to the value of |json|[|member|].
14131431
</li>
14141432
</ol>

0 commit comments

Comments
 (0)