Skip to content

Commit 95c742d

Browse files
committed
chore: fixup xrefs
1 parent 2b9d9f9 commit 95c742d

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

index.html

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
};
5151
</script>
5252
</head>
53-
<body data-cite="service-workers FILEAPI secure-contexts hr-time">
53+
<body data-cite="service-workers FILEAPI secure-contexts hr-time ECMASCRIPT">
5454
<section id="abstract">
5555
<p>
5656
The <cite>Push API</cite> enables sending of a <a>push message</a> to a web application via
@@ -120,11 +120,6 @@ <h2>
120120
<h2>
121121
Dependencies
122122
</h2>
123-
<p>
124-
<code><dfn data-cite="ECMASCRIPT#sec-json.parse">JSON.parse()</dfn></code> and
125-
<code><dfn data-cite="ECMASCRIPT#sec-json.stringify">JSON.stringify()</dfn></code> are
126-
defined in [[ECMASCRIPT]].
127-
</p>
128123
<p>
129124
The <dfn>web push protocol</dfn> [[RFC8030]] describes a protocol that enables
130125
communication between a <a>user agent</a> or <a>application server</a> and a <a>push
@@ -378,10 +373,10 @@ <h2>
378373
<a>push subscription</a> to send <a>push messages</a> to another <a>push subscription</a>.
379374
</p>
380375
<p>
381-
<a>User agents</a> MUST implement the Push API to only be available in a <a data-cite=
382-
"secure-contexts#secure-context">secure context</a>. This provides better protection for
383-
the user against man-in-the-middle attacks intended to obtain push subscription data.
384-
Browsers may ignore this rule for development purposes only.
376+
<a>User agents</a> MUST implement the Push API to only be available in a [=secure
377+
context=]. This provides better protection for the user against man-in-the-middle attacks
378+
intended to obtain push subscription data. Browsers may ignore this rule for development
379+
purposes only.
385380
</p>
386381
</section>
387382
<section class="informative" id="pushframework">
@@ -494,9 +489,8 @@ <h2>
494489
Extensions to the `ServiceWorkerRegistration` Interface
495490
</h2>
496491
<p>
497-
The Service Worker specification defines a <code><dfn data-cite=
498-
"service-workers#serviceworkerregistration">ServiceWorkerRegistration</dfn></code>
499-
interface [[SERVICE-WORKERS]], which this specification extends.
492+
The Service Worker specification defines a {{ServiceWorkerRegistration}} interface
493+
[[SERVICE-WORKERS]], which this specification extends.
500494
</p>
501495
<pre class="idl" data-cite="service-workers">
502496
[SecureContext]
@@ -506,7 +500,7 @@ <h2>
506500
</pre>
507501
<p>
508502
The <dfn>pushManager</dfn> attribute exposes a {{PushManager}}, which has an associated
509-
<a>service worker registration</a> represented by the <a>ServiceWorkerRegistration</a> on
503+
<a>service worker registration</a> represented by the {{ServiceWorkerRegistration}} on
510504
which the attribute is exposed.
511505
</p>
512506
</section>
@@ -546,9 +540,8 @@ <h2>
546540
</li>
547541
<li>Return |promise| and continue the following steps asynchronously.
548542
</li>
549-
<li>If the <a>current settings object</a> is not a <a data-cite=
550-
"secure-contexts#secure-context">secure context</a>, reject |promise| with a
551-
{{DOMException}} whose name is {{"SecurityError"}} and terminate these steps.
543+
<li>If the <a>current settings object</a> is not a [=secure context=], reject |promise|
544+
with a {{DOMException}} whose name is {{"SecurityError"}} and terminate these steps.
552545
</li>
553546
<li>If the |options| argument includes a non-null value for the
554547
{{PushSubscriptionOptions/applicationServerKey}} attribute, run the following sub-steps:
@@ -880,7 +873,7 @@ <h2>
880873
<p>
881874
A <dfn>PushSubscriptionJSON</dfn> dictionary represents the <a>JSON type</a> of a
882875
{{PushSubscription}}. In ECMAScript this can be converted into a JSON string through the
883-
<a>JSON.stringify()</a> function.
876+
`JSON`.{{JSON/stringify()}} function.
884877
</p>
885878
<p>
886879
The <dfn data-dfn-for="PushSubscriptionJSON">keys</dfn> record contains an entry for each
@@ -944,8 +937,8 @@ <h2>
944937
</p>
945938
<p data-cite="encoding">
946939
The <dfn>json()</dfn> method, when invoked, MUST return the result of invoking the initial
947-
value of <a>JSON.parse()</a> with the result of running <a>utf-8 decode</a> on |bytes| as
948-
argument. Re-throw any exceptions thrown by <a>JSON.parse()</a>.
940+
value of `JSON`.{{JSON/parse()}} with the result of running <a>utf-8 decode</a> on |bytes|
941+
as argument. Re-throw any exceptions thrown by `JSON`.{{JSON/parse()}}.
949942
</p>
950943
<p data-cite="encoding">
951944
The <dfn>text</dfn> method, when invoked, MUST return the result of running <a>utf-8
@@ -986,8 +979,7 @@ <h2>
986979
Extensions to the `ServiceWorkerGlobalScope` interface
987980
</h2>
988981
<p>
989-
The Service Worker specification defines a <dfn data-cite=
990-
"service-workers#serviceworkerglobalscope">ServiceWorkerGlobalScope</dfn> interface
982+
The Service Worker specification defines a {{ServiceWorkerGlobalScope}} interface
991983
[[SERVICE-WORKERS]], which this specification extends.
992984
</p>
993985
<pre class="idl" data-cite="HTML">

0 commit comments

Comments
 (0)