|
507 | 507 | <li>If |json|["dir"] doesn't [=map/exist=] or if |json|["dir"] is not
|
508 | 508 | a [=string=], return.
|
509 | 509 | </li>
|
| 510 | + <li>[=Strip leading and trailing ASCII whitespace=] from |
| 511 | + |json|["dir"]. |
| 512 | + </li> |
510 | 513 | <li>If [=text-direction list=] doesn't [=list/contain=]
|
511 | 514 | |json|["dir"], return.
|
512 | 515 | </li>
|
|
549 | 552 | <li>If |json|["lang"] doesn't [=map/exist=] or if |json|["lang"] is
|
550 | 553 | not a [=string=], return.
|
551 | 554 | </li>
|
| 555 | + <li>[=Strip leading and trailing ASCII whitespace=] from |
| 556 | + |json|["lang"]. |
| 557 | + </li> |
552 | 558 | <li>If calling <a data-cite=
|
553 | 559 | "ECMA-402#sec-isstructurallyvalidlanguagetag">IsStructurallyValidLanguageTag</a>
|
554 | 560 | with |json|["lang"] returns `false`, return.
|
|
677 | 683 | <li>If |json|["display"] doesn't [=map/exist=] or |json|["display"]
|
678 | 684 | is not a a [=string=], return.
|
679 | 685 | </li>
|
| 686 | + <li>[=Strip leading and trailing ASCII whitespace=] from |
| 687 | + |json|["display"]. |
| 688 | + </li> |
680 | 689 | <li>If [=display modes list=] doesn't [=list/contain=]
|
681 | 690 | |json|["display"], return.
|
682 | 691 | </li>
|
|
736 | 745 | <li>If |json|["orientation"] doesn't [=map/exist=] or
|
737 | 746 | |json|["orientation"] is not a [=string=], return.
|
738 | 747 | </li>
|
| 748 | + <li>[=Strip leading and trailing ASCII whitespace=] from |
| 749 | + |json|["orientation"]. |
| 750 | + </li> |
739 | 751 | <li>If |json|["orientation"] doesn't [=list/contain=] any of the
|
740 | 752 | [=orientation values=], return.
|
741 | 753 | </li>
|
@@ -1381,6 +1393,9 @@ <h2>
|
1381 | 1393 | <li>If |json|[member] doesn't [=map/exist=] or |json|[member] is
|
1382 | 1394 | not a [=string=], return.
|
1383 | 1395 | </li>
|
| 1396 | + <li>[=Strip leading and trailing ASCII whitespace=] from |
| 1397 | + |json|[|member|]. |
| 1398 | + </li> |
1384 | 1399 | <li>Let |color| be the result of [=CSS/parsing=] the value of
|
1385 | 1400 | |json|[member] as a CSS color.
|
1386 | 1401 | </li>
|
@@ -1409,6 +1424,9 @@ <h2>
|
1409 | 1424 | <li>If |json|[|member|] doesn't [=map/exists=] or |json|[|member|]
|
1410 | 1425 | is not a [=string=], return.
|
1411 | 1426 | </li>
|
| 1427 | + <li>[=Strip leading and trailing ASCII whitespace=] from |
| 1428 | + |json|[|member|]. |
| 1429 | + </li> |
1412 | 1430 | <li>Set |map|[member] to the value of |json|[|member|].
|
1413 | 1431 | </li>
|
1414 | 1432 | </ol>
|
|
0 commit comments