From 25bf943296d0a87298760fbd30848d1f9ea4f253 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
readonly attribute DOMString postalCode;
readonly attribute DOMString recipient;
readonly attribute DOMString region;
+ readonly attribute DOMString regionCode;
readonly attribute DOMString sortingCode;
readonly attribute FrozenArray<DOMString> addressLine;
};
@@ -2199,6 +2200,22 @@
+
+
+
+ Represents the region of the address as an [[!ISO3166-2]] + code. When getting, returns the value of the + PaymentAddress's [[\regionCode]] internal slot. +
+PT-11
" represents the Lisbon
+ district of Portugal.
+ + If regionCode is not a valid subdivision code as + per [[!ISO3166-2]]'s section 5.2 Structure of country + subdivision code elements (details below), throw a + RangeError exception. +
++ The structure of country subdivision code elements is + formally defined in [[!ISO3166-2]] (section 5.2). + Although the structure is not expected to change at the + time of writing, implementers are expected to track + updates to [[!ISO3166-2]] directly from ISO. +
++ As [[!ISO3166-2]] is not freely available to the general + public, the structure of a country subdivision code + elements at the time of publication is as follow: +
+Represents the region of the address as an [[!ISO3166-2]] - code. When getting, returns the value of the - PaymentAddress's [[\regionCode]] internal slot. + country subdivision code element. When getting, returns the value + of the PaymentAddress's [[\regionCode]] internal + slot.
PT-11
" represents the Lisbon
- district of Portugal.
+ A region represented as a [[!ISO3166-2]] country
+ subdivision code element or the empty string, stored in its
+ canonical uppercase form. For example, "PT-11
"
+ represents the Lisbon district of Portugal.
- If regionCode is not a valid subdivision code as - per [[!ISO3166-2]]'s section 5.2 Structure of country - subdivision code elements (details below), throw a + If regionCode is not a valid country + subdivision code element as per [[!ISO3166-2]]'s + section 5.2 "Structure of country subdivision code + elements" (non-normative details below), throw a RangeError exception.
- The structure of country subdivision code elements is + Do not implement from this note. The + structure of a country subdivision code element is formally defined in [[!ISO3166-2]] (section 5.2). Although the structure is not expected to change at the time of writing, implementers are expected to track @@ -2226,8 +2229,8 @@
As [[!ISO3166-2]] is not freely available to the general - public, the structure of a country subdivision code - elements at the time of publication is as follow: + public, the structure of a country subdivision code + element at the time of publication is as follows:
Represents the region of the address as an [[!ISO3166-2]] - country subdivision code element. When getting, returns the value - of the PaymentAddress's [[\regionCode]] internal - slot. + country subdivision code element. When getting, returns the + value of the PaymentAddress's [[\regionCode]] + internal slot.
PT-11
"
+ A region represented as a [[!ISO3166-2]] country
+ subdivision code element stored in its canonical uppercase
+ form, or the empty string. For example, "PT-11
"
represents the Lisbon district of Portugal.
If regionCode is not a valid country
@@ -2246,27 +2251,31 @@
- Represents the region of the address as an [[!ISO3166-2]] - country subdivision code element. When getting, returns the - value of the PaymentAddress's [[\regionCode]] - internal slot. + Represents the region of the address, but as the code + element of an [[!ISO3166-2]] country subdivision name (e.g., "CA" + for California, USA). When getting, returns the value of the + PaymentAddress's [[\regionCode]] internal slot.
PT-11
"
- represents the Lisbon district of Portugal.
+ Either the empty string, or one to three code points that
+ represent a region as the code element of an
+ [[!ISO3166-2]] country subdivision name (i.e., the characters
+ after the hyphen in an ISO3166-2 country subdivision code
+ element, such as "CA" for the state of California in the
+ USA, or "11" for the Lisbon district of Portugal).
- Represents the region of the address, but as the code - element of an [[!ISO3166-2]] country subdivision name (e.g., "CA" - for California, USA). When getting, returns the value of the + Represents the region of the address as a code element of an + [[!ISO3166-2]] country subdivision name (e.g., "CA" for California, + USA). When getting, returns the value of the PaymentAddress's [[\regionCode]] internal slot.
From 5f23fac5cc22a332f65a495d06878d1ef2870cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=- If regionCode is not a valid country - subdivision code element as per [[!ISO3166-2]]'s - section 5.2 "Structure of country subdivision code - elements" (non-normative details below), throw a - RangeError exception. + If countrySubdivisionCodeElement is not a valid + country subdivision code element as per + [[!ISO3166-2]]'s section 5.2 "Structure of country + subdivision code elements" (non-normative details below), + throw a RangeError exception.
From d2b59ee4ec6524e6017309d98214e1b67bf96301 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
ASCII uppercasing
the result.
- If countrySubdivisionCodeElement is not a valid
- country subdivision code element as per
+ If putativeCountrySubdivisionCodeElement is not
+ a valid country subdivision code element as per
[[!ISO3166-2]]'s section 5.2 "Structure of country
subdivision code elements" (non-normative details below),
throw a RangeError exception.
From 699d3290f5080400ded7fd27d7b5ebc539238f6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
subdivision name (i.e., the characters after the hyphen in an
ISO3166-2 country subdivision code element, such as "CA" for
the state of California in the USA, or "11" for the Lisbon district
- of Portugal)
+ of Portugal).