diff --git a/index.html b/index.html
index 47de99cc..1398e104 100644
--- a/index.html
+++ b/index.html
@@ -507,6 +507,9 @@
If |json|["dir"] doesn't [=map/exist=] or if |json|["dir"] is not
a [=string=], return.
+ [=Strip leading and trailing ASCII whitespace=] from
+ |json|["dir"].
+
If [=text-direction list=] doesn't [=list/contain=]
|json|["dir"], return.
@@ -549,6 +552,9 @@
If |json|["lang"] doesn't [=map/exist=] or if |json|["lang"] is
not a [=string=], return.
+ [=Strip leading and trailing ASCII whitespace=] from
+ |json|["lang"].
+
If calling IsStructurallyValidLanguageTag
with |json|["lang"] returns `false`, return.
@@ -677,6 +683,9 @@
If |json|["display"] doesn't [=map/exist=] or |json|["display"]
is not a a [=string=], return.
+ [=Strip leading and trailing ASCII whitespace=] from
+ |json|["display"].
+
If [=display modes list=] doesn't [=list/contain=]
|json|["display"], return.
@@ -736,6 +745,9 @@
If |json|["orientation"] doesn't [=map/exist=] or
|json|["orientation"] is not a [=string=], return.
+ [=Strip leading and trailing ASCII whitespace=] from
+ |json|["orientation"].
+
If |json|["orientation"] doesn't [=list/contain=] any of the
[=orientation values=], return.
@@ -1381,6 +1393,9 @@
If |json|[member] doesn't [=map/exist=] or |json|[member] is
not a [=string=], return.
+ [=Strip leading and trailing ASCII whitespace=] from
+ |json|[|member|].
+
Let |color| be the result of [=CSS/parsing=] the value of
|json|[member] as a CSS color.
@@ -1409,6 +1424,9 @@
If |json|[|member|] doesn't [=map/exists=] or |json|[|member|]
is not a [=string=], return.
+ [=Strip leading and trailing ASCII whitespace=] from
+ |json|[|member|].
+
Set |map|[member] to the value of |json|[|member|].