Short URL: http://html5.org/r/6252
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 6252 | 2011-06-17 00:46 |
Index: source =================================================================== --- source (revision 6251) +++ source (revision 6252) @@ -89433,11 +89433,11 @@ changes.</p> <p>The <dfn title="dom-EventSource-close"><code>close()</code></dfn> - method must close the connection, if any; must abort any - reconnection attempt, if any; and must set the <code + method must close the connection, if any; must abort any instances + of the <span>fetch</span> algorithm started for this + <code>EventSource</code> object; and must set the <code title="dom-EventSource-readyState">readyState</code> attribute to - <code title="dom-EventSource-CLOSED">CLOSED</code>. If the - connection is already closed, the method must do nothing.</p> + <code title="dom-EventSource-CLOSED">CLOSED</code>.</p> <p>The following are the <span>event handlers</span> (and their corresponding <span title="event handler event type">event handler @@ -89574,20 +89574,23 @@ title="event-open">open</code> at the <code>EventSource</code> object.</p> - <p>When a user agent is to <dfn>reestablish the connection</dfn>, the user - agent must set the <code + <p>When a user agent is to <dfn>reestablish the connection</dfn>, + the user agent must set the <code title="dom-EventSource-readyState">readyState</code> attribute to <code title="dom-EventSource-CONNECTING">CONNECTING</code>, <span>queue a task</span> to <span>fire a simple event</span> named <code title="event-error">error</code> at the - <code>EventSource</code> object, and then <span>fetch</span> the - event source resource again after a delay equal to the reconnection - time of the event source, from the same <span>origin</span> as the - original request triggered by the <code - title="dom-EventSource">EventSource()</code> - constructor. <strong>Only if the user agent <span title="reestablish the - connection">reestablishes the connection</span> does the connection get - opened anew!</strong></p> + <code>EventSource</code> object, and then, after a delay equal to + the reconnection time of the event source, if the <code + title="dom-EventSource-readyState">readyState</code> attribute is + still set to <code + title="dom-EventSource-CONNECTING">CONNECTING</code>, + <span>fetch</span> the event source resource again from the same + <span>origin</span> as the original request triggered by the <code + title="dom-EventSource">EventSource()</code> constructor. + <strong>Only if the user agent <span title="reestablish the + connection">reestablishes the connection</span> does the connection + get opened anew!</strong></p> <p>When a user agent is to <dfn>fail the connection</dfn>, the user agent must set the <code @@ -114692,7 +114695,9 @@ Henry Mason, Hugh Winkler, Ian Bicking, + Ian Clelland, Ian Davis, + Ian Fette, Ignacio Javier, Ivan Enderlin, Ivo Emanuel Gonçalves,