|
11 | 11 | var respecConfig = {
|
12 | 12 | specStatus: "ED",
|
13 | 13 | shortName: "push-api",
|
14 |
| - // previousPublishDate: "2013-08-15", |
15 |
| - // previousMaturity: "WD", |
| 14 | + previousMaturity: "WD", |
16 | 15 | editors: [
|
17 | 16 | {
|
18 | 17 | name: "Peter Beverloo",
|
|
45 | 44 | retiredDate: "2016-11-08",
|
46 | 45 | }
|
47 | 46 | ],
|
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", |
51 | 48 | github: "w3c/push-api",
|
52 | 49 | xref: "web-platform",
|
53 | 50 | };
|
|
124 | 121 | Dependencies
|
125 | 122 | </h2>
|
126 | 123 | <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 |
129 | 126 | defined in [[ECMASCRIPT]].
|
130 | 127 | </p>
|
131 | 128 | <p>
|
|
136 | 133 | provide compatible semantics.
|
137 | 134 | </p>
|
138 | 135 | <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>. |
141 | 138 | </p>
|
142 | 139 | </section>
|
143 | 140 | <section>
|
@@ -768,15 +765,15 @@ <h2>
|
768 | 765 | };
|
769 | 766 | </pre>
|
770 | 767 | <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 |
772 | 769 | <a>push endpoint</a> associated with the <a>push subscription</a>. The <a>user agent</a>
|
773 | 770 | MUST use a serialization method that does not contain input-dependent branches (that is,
|
774 | 771 | one that is constant time).
|
775 | 772 | </p>
|
776 | 773 | <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. |
780 | 777 | </p>
|
781 | 778 | <p>
|
782 | 779 | When getting the <dfn>options</dfn> attribute, the <a>user agent</a> MUST return a
|
@@ -850,13 +847,11 @@ <h2>
|
850 | 847 | <ol>
|
851 | 848 | <li>Let |json:PushSubscriptionJSON| be a new {{PushSubscriptionJSON}} dictionary.
|
852 | 849 | </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=]. |
856 | 852 | </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=]. |
860 | 855 | </li>
|
861 | 856 | <li>Let |keys| be a new empty instance of `record<DOMString, USVString>` .
|
862 | 857 | </li>
|
@@ -885,17 +880,7 @@ <h2>
|
885 | 880 | <p>
|
886 | 881 | A <dfn>PushSubscriptionJSON</dfn> dictionary represents the <a>JSON type</a> of a
|
887 | 882 | {{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. |
899 | 884 | </p>
|
900 | 885 | <p>
|
901 | 886 | The <dfn data-dfn-for="PushSubscriptionJSON">keys</dfn> record contains an entry for each
|
|
959 | 944 | </p>
|
960 | 945 | <p data-cite="encoding">
|
961 | 946 | 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>. |
964 | 949 | </p>
|
965 | 950 | <p data-cite="encoding">
|
966 | 951 | The <dfn>text</dfn> method, when invoked, MUST return the result of running <a>utf-8
|
|
0 commit comments