Re: [w3c/payment-request] Feat: add constructor to PaymentAddress (#654)

marcoscaceres commented on this pull request.



> @@ -3379,7 +3837,16 @@ <h2>
       <p>
         This specification relies on several other underlying specifications.
       </p>
-      <dl>
+      <dl data-sort="">
+        <dt>
+          Infra
+        </dt>
+        <dd>
+          The [[!INFRA] specification defines how to <dfn data-cite=
+          "!INFRA#strip-leading-and-trailing-ascii-whitespace">strip leading
+          and trailing ascii whitespace</dfn>. It also defines the concpet of a
+          <dfn data-cite="!INFRA#list">list</dfn>.

yeah, that's a good point... specially because this might be coming from free form input from a end-user (e.g., "region"). 

@domenic, seems JS `String.prototpye.trim()` does mostly the right thing (some bugginess across browsers). Do you have any suggestions?   


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/pull/654#discussion_r164383853

Received on Monday, 29 January 2018 10:10:35 UTC