Skip to content

Commit 724cc96

Browse files
committed
rename to navigate
1 parent 6dd8319 commit 724cc96

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

notifications.bs

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ or "<code>rtl</code>").
6060
<p>A <a for=/>notification</a> has an associated <dfn for=notification id=body>body</dfn> (a
6161
string).
6262

63-
<p>A <a for=/>notification</a> has an associated <dfn for=notification>URL</dfn> (null or a
64-
<a for=/>URL</a>). It is initially null.
63+
<p>A <a for=/>notification</a> has an associated <dfn for=notification>navigation URL</dfn> (null or
64+
a <a for=/>URL</a>). It is initially null.
6565

6666
<p>A <a for=/>notification</a> has an associated <dfn for=notification id=tag>tag</dfn> (a string).
6767

@@ -139,7 +139,7 @@ for an end user. Each <a for=/>action</a> has an associated:
139139
<dt><dfn for=action id=action-title>title</dfn>
140140
<dd>A string.
141141

142-
<dt><dfn for=action>URL</dfn>
142+
<dt><dfn for=action>navigation URL</dfn>
143143
<dd>Null or a <a for=/>URL</a>. It is initially null.
144144

145145
<dt><dfn for=action>icon URL</dfn>
@@ -225,10 +225,10 @@ clipped corners.
225225
<li><p>Set <var>notification</var>'s <a for=notification>body</a> to
226226
<var>options</var>["{{NotificationOptions/body}}"].
227227

228-
<li><p>If <var>options</var>["{{NotificationOptions/url}}"] <a for=map>exists</a>, then
228+
<li><p>If <var>options</var>["{{NotificationOptions/navigate}}"] <a for=map>exists</a>, then
229229
<a lt="URL parser">parse</a> it using <var>baseURL</var>, and if that does not return failure, set
230-
<var>notification</var>'s <a for=notification>URL</a> to the return value. (Otherwise
231-
<var>notification</var>'s <a for=notification>URL</a> remains null.)
230+
<var>notification</var>'s <a for=notification>navigation URL</a> to the return value. (Otherwise
231+
<var>notification</var>'s <a for=notification>navigation URL</a> remains null.)
232232

233233
<li><p>Set <var>notification</var>'s <a for=notification>tag</a> to
234234
<var>options</var>["{{NotificationOptions/tag}}"].
@@ -280,10 +280,10 @@ clipped corners.
280280
<li><p>Set <var>action</var>'s <a for=action>title</a> to
281281
<var>entry</var>["{{NotificationAction/title}}"].
282282

283-
<li><p>If <var>entry</var>["{{NotificationAction/url}}"] <a for=map>exists</a>, then
283+
<li><p>If <var>entry</var>["{{NotificationAction/navigate}}"] <a for=map>exists</a>, then
284284
<a lt="URL parser">parse</a> it using <var>baseURL</var>, and if that does not return failure,
285-
set <var>action</var>'s <a for=action>URL</a> to the return value. (Otherwise <var>action</var>'s
286-
<a for=action>URL</a> remains null.)
285+
set <var>action</var>'s <a for=action>navigation URL</a> to the return value. (Otherwise
286+
<var>action</var>'s <a for=action>navigation URL</a> remains null.)
287287

288288
<li><p>If <var>entry</var>["{{NotificationAction/icon}}"] <a for=map>exists</a>, then
289289
<a lt="URL parser">parse</a> it using <var>baseURL</var>, and if that does not return failure,
@@ -560,21 +560,22 @@ platform supports activation, the user agent must (unless otherwise specified) r
560560
<li><p>If one of <var>notification</var>'s <a for=notification>actions</a> was activated by the end
561561
user, then set <var>action</var> to that <a for=/>action</a>.
562562

563-
<li><p>Let <var>url</var> be <var>notification</var>'s <a for=notification>URL</a>.
563+
<li><p>Let <var>navigationURL</var> be <var>notification</var>'s
564+
<a for=notification>navigation URL</a>.
564565

565566
<li>
566-
<p>If <var>action</var> is non-null, then set <var>url</var> to <var>action</var>'s
567-
<a for=action>URL</a>.
567+
<p>If <var>action</var> is non-null, then set <var>navigationURL</var> to <var>action</var>'s
568+
<a for=action>navigation URL</a>.
568569

569570
<p class=note>This intentionally makes it so that when an <a for=/>action</a>'s
570-
<a for=action>URL</a> is null, it falls through to the <code>click</code> event, providing more
571-
flexibility to the web developer.
571+
<a for=action>navigation URL</a> is null, it falls through to the <code>click</code> event,
572+
providing more flexibility to the web developer.
572573

573574
<li>
574-
<p>If <var>url</var> is non-null:
575+
<p>If <var>navigationURL</var> is non-null:
575576

576577
<ol>
577-
<li><p><a>Create a fresh top-level traversable</a> given <var>url</var>.
578+
<li><p><a>Create a fresh top-level traversable</a> given <var>navigationURL</var>.
578579
<!-- Should maybe set userInvolvement correctly here, even though it doesn't do anything today. -->
579580

580581
<li><p>Return.
@@ -681,7 +682,7 @@ interface Notification : EventTarget {
681682
readonly attribute NotificationDirection dir;
682683
readonly attribute DOMString lang;
683684
readonly attribute DOMString body;
684-
readonly attribute USVString url;
685+
readonly attribute USVString navigate;
685686
readonly attribute DOMString tag;
686687
readonly attribute USVString image;
687688
readonly attribute USVString icon;
@@ -701,7 +702,7 @@ dictionary NotificationOptions {
701702
NotificationDirection dir = "auto";
702703
DOMString lang = "";
703704
DOMString body = "";
704-
USVString url;
705+
USVString navigate;
705706
DOMString tag = "";
706707
USVString image;
707708
USVString icon;
@@ -730,7 +731,7 @@ enum NotificationDirection {
730731
dictionary NotificationAction {
731732
required DOMString action;
732733
required DOMString title;
733-
USVString url;
734+
USVString navigate;
734735
USVString icon;
735736
};
736737

@@ -894,13 +895,13 @@ return the <a>maximum number of actions</a> supported.
894895
<p>The <dfn attribute for=Notification><code>body</code></dfn> getter steps are to return
895896
<a>this</a>'s <a for=/>notification</a>'s <a for=notification>body</a>.
896897

897-
<p>The <dfn attribute for=Notification><code>url</code></dfn> getter steps are:
898+
<p>The <dfn attribute for=Notification><code>navigate</code></dfn> getter steps are:
898899

899900
<ol>
900-
<li><p>If <a>this</a>'s <a>notification</a>'s <a for=notification>URL</a> is null, then return the
901-
empty string.
901+
<li><p>If <a>this</a>'s <a>notification</a>'s <a for=notification>navigation URL</a> is null, then
902+
return the empty string.
902903

903-
<li><p>Return <a>this</a>'s <a>notification</a>'s <a for=notification>URL</a>,
904+
<li><p>Return <a>this</a>'s <a>notification</a>'s <a for=notification>navigation URL</a>,
904905
<a lt="URL serializer">serialized</a>.
905906
</ol>
906907

@@ -976,9 +977,9 @@ then return null.
976977
<li><p>Set <var>action</var>["{{NotificationAction/title}}"] to <var>entry</var>'s
977978
<a for=action>title</a>.
978979

979-
<li><p>If <var>entry</var>'s <a for=action>URL</a> is non-null, then set
980-
<var>action</var>["{{NotificationAction/url}}"] to <var>entry</var>'s <a for=action>URL</a>,
981-
<a lt="URL serializer">serialized</a>.
980+
<li><p>If <var>entry</var>'s <a for=action>navigation URL</a> is non-null, then set
981+
<var>action</var>["{{NotificationAction/navigate}}"] to <var>entry</var>'s
982+
<a for=action>navigation URL</a>, <a lt="URL serializer">serialized</a>.
982983

983984
<li><p>If <var>entry</var>'s <a for=action>icon URL</a> is non-null, then set
984985
<var>action</var>["{{NotificationAction/icon}}"] to <var>entry</var>'s

0 commit comments

Comments
 (0)