Skip to content

Commit b49ae69

Browse files
committed
Editorial: Remove redundant toJSON defs + xref
1 parent 68a6160 commit b49ae69

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

index.html

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,10 @@ <h3>
574574
<p>
575575
It's expected that data in a <a>PaymentResponse</a> will be POSTed
576576
back to a server for processing. To make this as easy as possible,
577-
<a>PaymentResponse</a> provides a <a>toJSON()</a> method that
578-
serializes the object directly into JSON. This makes it trivial to
579-
POST the resulting JSON back to a server using the [[[fetch]]]:
577+
<a>PaymentResponse</a> can use the [=default toJSON steps=] (i.e.,
578+
`.toJSON()`) to serializes the object directly into JSON. This makes
579+
it trivial to POST the resulting JSON back to a server using the
580+
[[[fetch]]]:
580581
</p>
581582
<pre class="example js" title="POSTing with `fetch()`">
582583
async function doPaymentRequest() {
@@ -2404,14 +2405,6 @@ <h2>
24042405
</li>
24052406
</ol>
24062407
</section>
2407-
<section>
2408-
<h2>
2409-
<dfn>toJSON()</dfn> method
2410-
</h2>
2411-
<p>
2412-
When called, runs [[WEBIDL]]'s <a>default toJSON operation</a>.
2413-
</p>
2414-
</section>
24152408
<section>
24162409
<h2>
24172410
<dfn>country</dfn> attribute
@@ -3302,14 +3295,6 @@ <h3>
33023295
</pre>
33033296
</section>
33043297
</section>
3305-
<section>
3306-
<h2>
3307-
<dfn>toJSON()</dfn> method
3308-
</h2>
3309-
<p>
3310-
When called, runs [[WEBIDL]]'s <a>default toJSON operation</a>.
3311-
</p>
3312-
</section>
33133298
<section>
33143299
<h2>
33153300
<dfn>methodName</dfn> attribute

0 commit comments

Comments
 (0)