Skip to content

Commit 35457b2

Browse files
Merge pull request #330 from w3c/cleanup
Editorial: cleanup + xrefs
2 parents 238d92d + 3e04927 commit 35457b2

File tree

1 file changed

+17
-32
lines changed

1 file changed

+17
-32
lines changed

index.html

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
var respecConfig = {
1212
specStatus: "ED",
1313
shortName: "push-api",
14-
// previousPublishDate: "2013-08-15",
15-
// previousMaturity: "WD",
14+
previousMaturity: "WD",
1615
editors: [
1716
{
1817
name: "Peter Beverloo",
@@ -45,9 +44,7 @@
4544
retiredDate: "2016-11-08",
4645
}
4746
],
48-
wg: "Web Applications Working Group",
49-
wgURI: "https://www.w3.org/2019/webapps/",
50-
wgPatentURI: "https://www.w3.org/2004/01/pp-impl/114929/status",
47+
group: "webapps",
5148
github: "w3c/push-api",
5249
xref: "web-platform",
5350
};
@@ -124,8 +121,8 @@ <h2>
124121
Dependencies
125122
</h2>
126123
<p>
127-
<code><dfn data-cite="ECMASCRIPT#sec-json.parse">JSON.parse</dfn></code> and
128-
<code><dfn data-cite="ECMASCRIPT#sec-json.stringify">JSON.stringify</dfn></code> are
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
129126
defined in [[ECMASCRIPT]].
130127
</p>
131128
<p>
@@ -136,8 +133,8 @@ <h2>
136133
provide compatible semantics.
137134
</p>
138135
<p>
139-
The <dfn>Content-Encoding</dfn> HTTP header, described in Section 3.1.2.2 of [[RFC7231]],
140-
indicates the content coding applied to the payload of a <a>push message</a>.
136+
The <code><dfn>Content-Encoding</dfn></code> HTTP header, described in Section 3.1.2.2 of
137+
[[RFC7231]], indicates the content coding applied to the payload of a <a>push message</a>.
141138
</p>
142139
</section>
143140
<section>
@@ -768,15 +765,15 @@ <h2>
768765
};
769766
</pre>
770767
<p>
771-
When getting the <dfn>endpoint</dfn> attribute, the <a>user agent</a> MUST return the
768+
When <dfn>getting the `endpoint` attribute</dfn>, the <a>user agent</a> MUST return the
772769
<a>push endpoint</a> associated with the <a>push subscription</a>. The <a>user agent</a>
773770
MUST use a serialization method that does not contain input-dependent branches (that is,
774771
one that is constant time).
775772
</p>
776773
<p>
777-
When getting the <dfn>expirationTime</dfn> attribute, the <a>user agent</a> MUST return the
778-
<a>subscription expiration time</a> associated with the <a>push subscription</a> if there
779-
is one, or `null` otherwise.
774+
When <dfn>getting the `expirationTime` attribute</dfn>, the <a>user agent</a> MUST return
775+
the <a>subscription expiration time</a> associated with the <a>push subscription</a> if
776+
there is one, or `null` otherwise.
780777
</p>
781778
<p>
782779
When getting the <dfn>options</dfn> attribute, the <a>user agent</a> MUST return a
@@ -850,13 +847,11 @@ <h2>
850847
<ol>
851848
<li>Let |json:PushSubscriptionJSON| be a new {{PushSubscriptionJSON}} dictionary.
852849
</li>
853-
<li>Set |json|["endpoint"] to the result of <a data-lt="get the underlying value">getting
854-
the underlying value</a> of the {{PushSubscription/endpoint}} attribute given this
855-
{{PushSubscription}} object.
850+
<li>Set |json|["endpoint"] to the result of [=getting the `endpoint` attribute=] of
851+
[=this=].
856852
</li>
857-
<li>Set |json|["expirationTime"] to the result of <a data-lt=
858-
"get the underlying value">getting the underlying value</a> of the
859-
{{PushSubscription/expirationTime}} attribute given this {{PushSubscription}} object.
853+
<li>Set |json|["expirationTime"] to the result of [=getting the `expirationTime`
854+
attribute=] of [=this=].
860855
</li>
861856
<li>Let |keys| be a new empty instance of `record&lt;DOMString, USVString&gt;` .
862857
</li>
@@ -885,17 +880,7 @@ <h2>
885880
<p>
886881
A <dfn>PushSubscriptionJSON</dfn> dictionary represents the <a>JSON type</a> of a
887882
{{PushSubscription}}. In ECMAScript this can be converted into a JSON string through the
888-
<a>JSON.stringify</a> function.
889-
</p>
890-
<p>
891-
The <dfn data-dfn-for="PushSubscriptionJSON">endpoint</dfn> contains the <a data-lt=
892-
"get the underlying value">underlying value</a> of the {{PushSubscription/endpoint}}
893-
attribute.
894-
</p>
895-
<p>
896-
The <dfn data-dfn-for="PushSubscriptionJSON">expirationTime</dfn> contains the <a data-lt=
897-
"get the underlying value">underlying value</a> of the {{PushSubscription/expirationTime}}
898-
attribute.
883+
<a>JSON.stringify()</a> function.
899884
</p>
900885
<p>
901886
The <dfn data-dfn-for="PushSubscriptionJSON">keys</dfn> record contains an entry for each
@@ -959,8 +944,8 @@ <h2>
959944
</p>
960945
<p data-cite="encoding">
961946
The <dfn>json()</dfn> method, when invoked, MUST return the result of invoking the initial
962-
value of <a>JSON.parse</a> with the result of running <a>utf-8 decode</a> on |bytes| as
963-
argument. Re-throw any exceptions thrown by <a>JSON.parse</a>.
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>.
964949
</p>
965950
<p data-cite="encoding">
966951
The <dfn>text</dfn> method, when invoked, MUST return the result of running <a>utf-8

0 commit comments

Comments
 (0)