Skip to content

Commit 4b8ec1b

Browse files
committed
Add a note about window.focus() to fix #2.
1 parent e91cbf5 commit 4b8ec1b

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

Overview.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77

88
<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-notifications.svg" width="100"></a></p>
99
<h1>Notifications API</h1>
10-
<h2 class="no-num no-toc" id="living-standard-—-last-updated-18-november-2013">Living Standard — Last Updated 18 November 2013</h2>
10+
<h2 class="no-num no-toc" id="living-standard-—-last-updated-19-november-2013">Living Standard — Last Updated 19 November 2013</h2>
1111

1212
<dl>
1313
<dt>This Version:
1414
<dd><a href="http://notifications.spec.whatwg.org/">http://notifications.spec.whatwg.org/</a>
1515

1616
<dt>Participate:</dt>
17-
<dd>Send feedback to
18-
<a href="http://www.whatwg.org/mailing-list">[email protected]</a>
17+
<dd>Send feedback to <a href="http://www.whatwg.org/mailing-list">[email protected]</a>
18+
or <a href="https://github.com/whatwg/notifications/issues/new">file an issue</a>
19+
(<a href="https://github.com/whatwg/notifications/issues">open issues</a>)
1920
<dd><a href="http://wiki.whatwg.org/wiki/IRC">IRC: #whatwg on Freenode</a>
2021

2122
<dt>Version History:
@@ -35,7 +36,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-18-november-2013"
3536
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
3637
To the extent possible under law, the editors have waived all copyright and
3738
related or neighboring rights to this work. In addition, as of
38-
18 November 2013, the editors have made this specification available
39+
19 November 2013, the editors have made this specification available
3940
under the
4041
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
4142
which is available at
@@ -275,6 +276,11 @@ <h3 id="activating-a-notification"><span class="secno">4.6 </span>Activating a n
275276

276277
<p class="note">Throughout the web platform "activate" is intentionally misnamed as "click".
277278

279+
<p class="note">User agents are strongly encouraged to make
280+
<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#dom-window-focus"><code class="external" data-anolis-spec="html" title="dom-window-focus">window.focus()</code></a> work from within
281+
the event listener for the event named <code title="">click</code> as a means of focusing the
282+
browsing context related to the notification.
283+
278284
<h3 id="closing-a-notification"><span class="secno">4.7 </span>Closing a notification</h3>
279285

280286
<p>When a <a href="#concept-notification" title="concept-notification">notification</a> is closed,

Overview.src.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ <h2 class="no-num no-toc">Living Standard &mdash; Last Updated [DATE: 01 Jan 190
1616
<dd><a href="http://notifications.spec.whatwg.org/">http://notifications.spec.whatwg.org/</a>
1717

1818
<dt>Participate:</dt>
19-
<dd>Send feedback to
20-
<a href="http://www.whatwg.org/mailing-list">[email protected]</a>
19+
<dd>Send feedback to <a href="http://www.whatwg.org/mailing-list">[email protected]</a>
20+
or <a href="https://github.com/whatwg/notifications/issues/new">file an issue</a>
21+
(<a href="https://github.com/whatwg/notifications/issues">open issues</a>)
2122
<dd><a href="http://wiki.whatwg.org/wiki/IRC">IRC: #whatwg on Freenode</a>
2223

2324
<dt>Version History:
@@ -250,6 +251,11 @@ <h3>Activating a notification</h3>
250251

251252
<p class=note>Throughout the web platform "activate" is intentionally misnamed as "click".
252253

254+
<p class=note>User agents are strongly encouraged to make
255+
<code data-anolis-spec=html title=dom-window-focus>window.focus()</code> work from within
256+
the event listener for the event named <code title>click</code> as a means of focusing the
257+
browsing context related to the notification.
258+
253259
<h3>Closing a notification</h3>
254260

255261
<p>When a <span title=concept-notification>notification</span> is closed,

0 commit comments

Comments
 (0)