From 49f32c196c2ac731bb9289ebc65b6521aa425551 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Fri, 20 Jan 2017 17:45:34 -0500 Subject: [PATCH] Editorial: rename "parsedMethodData" to "serializedMethodData" We actually store the serialized form, not the parsed form; this is more accurate. --- index.html | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 52e74ef6..cb5fe816 100644 --- a/index.html +++ b/index.html @@ -357,7 +357,7 @@

allowpaymentrequest, then throw a "SecurityError" DOMException. -
  • Let parsedMethodData be an empty list. +
  • Let serializedMethodData be an empty list.
  • Process payment methods:
      @@ -373,7 +373,7 @@

      informing the developer that each payment method needs to include at least one payment method identifier. -
    1. Let parsedData be the result of +
    2. Let serializedData be the result of JSON-serializing paymentMethod.data into a string, if the
    3. Add the tuple (paymentMethod.supportedMethods, - parsedData) to parsedMethodData. + serializedData) to + serializedMethodData.
  • @@ -549,8 +550,8 @@

  • Set request.[[\details]] to details.
  • -
  • Set request.[[\parsedMethodData]] to - parsedMethodData. +
  • Set request.[[\serializedMethodData]] to + serializedMethodData.
  • Set the value of request's shippingOption attribute to @@ -620,7 +621,7 @@

    in parallel.

  • For each paymentMethod in - request.[[\parsedMethodData]]: + request.[[\serializedMethodData]]:
    1. Consult the appropriate payment apps to see if they support any of the payment method identifiers given by the @@ -752,7 +753,7 @@

      parallel.

    2. For each methodData in - request.[[\parsedMethodData]]: + request.[[\serializedMethodData]]:
      1. If methodData.supportedMethods @@ -824,7 +825,7 @@

        - [[\parsedMethodData]] + [[\serializedMethodData]] The methodData supplied to the constructor, but