Skip to content

Commit ff8273e

Browse files
editorial: note about inputting regions (w3c#711)
Sometimes the browser won't let users enter a region code... as it's not convention in certain countries.
1 parent f0018f9 commit ff8273e

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

index.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,25 @@ <h2>
27992799
<var>details</var>["<a>recipient</a>"] to the user-provided recipient
28002800
of the transaction, or to the empty string if none was provided.
28012801
</li>
2802-
<li>If "region" is not in <var>redactList</var>:
2802+
<li>
2803+
<p>
2804+
If "region" is not in <var>redactList</var>:
2805+
</p>
2806+
<p data-link-for="" class="note" title=
2807+
"Countries where regions are not commonly used">
2808+
In some countries (e.g., Belgium) it is uncommon for users to
2809+
include a <a>region</a> as part of a <a>physical address</a>
2810+
(even if all the regions of a country are part of
2811+
[[!ISO3166-2]]). As such, when the user agent knows that the user
2812+
is inputting the address for a particular country, it might not
2813+
provide a field for the user to input a <a>region</a>. In such
2814+
cases, the user agent returns an empty string for both
2815+
<a>PaymentAddress</a>'s <a data-link-for=
2816+
"PaymentAddress">region</a> and <a data-link-for=
2817+
"PaymentAddress">regionCode</a> attributes - but the address can
2818+
still serve its intended purpose (e.g., be valid for shipping or
2819+
billing purposes).
2820+
</p>
28032821
<ol>
28042822
<li>Set <var>details</var>["<a>region</a>"] to the user-provided
28052823
region, or to the empty string if none was provided.

0 commit comments

Comments
 (0)