Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim dir, lang, display, orientation, text and color values #1140

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading