- From: poot <cvsmail@w3.org>
- Date: Thu, 24 Sep 2009 18:56:37 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Change the media events xrefs so that other occurrences of 'load', 'error', etc, don't xref to the media section. (whatwg r3984) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3145&r2=1.3146&f=h http://html5.org/tools/web-apps-tracker?from=3983&to=3984 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3145 retrieving revision 1.3146 diff -u -d -r1.3145 -r1.3146 --- Overview.html 24 Sep 2009 09:52:03 -0000 1.3145 +++ Overview.html 24 Sep 2009 09:56:06 -0000 1.3146 @@ -9355,12 +9355,12 @@ <p>The <a href="#concept-task" title="concept-task">task</a> that is <a href="#queue-a-task" title="queue a task">queued</a> by the <a href="#networking-task-source">networking task source</a> once the resource has been <a href="#fetch" title="fetch">fetched</a> must, if the loads were successful, <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called - <code title="event-load"><a href="#event-load">load</a></code> at the <code><a href="#the-link-element">link</a></code> + <code title="event-load">load</code> at the <code><a href="#the-link-element">link</a></code> element; otherwise, if the resource or one of its subresources failed to completely load for any reason (e.g. DNS error, HTTP 404 response, a connection being prematurely closed, unsupported Content-Type), it must instead <a href="#queue-a-task">queue a task</a> to - <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-error"><a href="#event-error">error</a></code> at the <code><a href="#the-link-element">link</a></code> + <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-error">error</code> at the <code><a href="#the-link-element">link</a></code> element. Non-network errors in processing the resource or its subresources (e.g. CSS parse errors, PNG decoding errors) are not failures for the purposes of this paragraph.</p> @@ -10344,12 +10344,12 @@ <!-- the next paragraph is similar to text in the <link> section --> <p>Once the element has been evaluated, if it had no subresources or once all the subresources it uses have been <a href="#fetch" title="fetch">fetched</a>, the user agent must <a href="#queue-a-task">queue a - task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-load"><a href="#event-load">load</a></code> at the <code><a href="#the-style-element">style</a></code> element. If + task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-load">load</code> at the <code><a href="#the-style-element">style</a></code> element. If the resource has a subresource that fails to completely load for any reason (e.g. DNS error, HTTP 404 response, the connection being prematurely closed, unsupported Content-Type), the user agent must instead <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-error"><a href="#event-error">error</a></code> at the + event</a> called <code title="event-error">error</code> at the <code><a href="#the-style-element">style</a></code> element. Non-network errors in the processing of the element's contents or its subresources (e.g. CSS parse errors) are not failures for the purposes of this paragraph. The @@ -10890,7 +10890,7 @@ an HTTP 404 error)</dt> <dd><p>Executing the script block must just consist of <a href="#fire-a-simple-event" title="fire a simple event">firing a simple event</a> called - <code title="event-error"><a href="#event-error">error</a></code> at the element.</dd> + <code title="event-error">error</code> at the element.</dd> <dt>If the load was successful</dt> @@ -10993,7 +10993,7 @@ <li> - <p><a href="#fire-a-simple-event">Fire a simple event</a> called <code title="event-load"><a href="#event-load">load</a></code> at the <code><a href="#script">script</a></code> + <p><a href="#fire-a-simple-event">Fire a simple event</a> called <code title="event-load">load</code> at the <code><a href="#script">script</a></code> element.</p> </li> @@ -11407,7 +11407,7 @@ attributes</a> of the <code><a href="#window">Window</a></code> object, exposed on the <code><a href="#the-body-element-0">body</a></code> element, shadow the generic <a href="#event-handler-attributes-0">event handler attributes</a> with the same names normally supported by - <a href="#html-elements">HTML elements</a>.<p class="example">Thus, for example, a bubbling <code title="event-error"><a href="#event-error">error</a></code> event fired on a child of <a href="#the-body-element">the + <a href="#html-elements">HTML elements</a>.<p class="example">Thus, for example, a bubbling <code title="event-error">error</code> event fired on a child of <a href="#the-body-element">the body element</a> of a <code>Document</code> would first trigger the <code title="handler-onerror"><a href="#handler-onerror">onerror</a></code> <a href="#event-handler-content-attributes">event handler content attributes</a> of that element, then that of the root @@ -16053,7 +16053,7 @@ <dl class="switch"><dt>If the download was successful and the image is <i title="img-available"><a href="#img-available">available</a></i></dt> <dd><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> - called <code title="event-load"><a href="#event-load">load</a></code> at the <code><a href="#the-img-element">img</a></code> + called <code title="event-load">load</code> at the <code><a href="#the-img-element">img</a></code> element (this happens after <code title="dom-img-complete"><a href="#dom-img-complete">complete</a></code> starts returning true).</dd> @@ -16062,7 +16062,7 @@ image)</dt> <dd><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> - called <code title="event-error"><a href="#event-error">error</a></code> on the + called <code title="event-error">error</code> on the <code><a href="#the-img-element">img</a></code> element.</dd> </dl><p>The <a href="#task-source">task source</a> for these <span title="concept-tasks">tasks</span> is the <a href="#dom-manipulation-task-source">DOM manipulation @@ -17197,12 +17197,12 @@ value. If the attribute is removed, the <a href="#browsing-context-name">browsing context name</a> must be set to the empty string.</p> - <p>When content loads in an <code><a href="#the-iframe-element">iframe</a></code>, after any <code title="event-load"><a href="#event-load">load</a></code> events are fired within the content + <p>When content loads in an <code><a href="#the-iframe-element">iframe</a></code>, after any <code title="event-load">load</code> events are fired within the content itself, the user agent must <a href="#fire-a-simple-event">fire a simple event</a> called - <code title="event-load"><a href="#event-load">load</a></code> at the <code><a href="#the-iframe-element">iframe</a></code> + <code title="event-load">load</code> at the <code><a href="#the-iframe-element">iframe</a></code> element. When content fails to load (e.g. due to a network error), then the user agent must <a href="#fire-a-simple-event">fire a simple event</a> called - <code title="event-error"><a href="#event-error">error</a></code> at the element instead.</p> + <code title="event-error">error</code> at the element instead.</p> <p>When there is an <a href="#active-parser">active parser</a> in the <code><a href="#the-iframe-element">iframe</a></code>, and when anything in the <code><a href="#the-iframe-element">iframe</a></code> is @@ -17211,7 +17211,7 @@ <a href="#active-document">active document</a>, the <code><a href="#the-iframe-element">iframe</a></code> must <a href="#delay-the-load-event">delay the load event</a> of its document.</p> - <p class="note">If, during the handling of the <code title="event-load"><a href="#event-load">load</a></code> event, the <a href="#browsing-context">browsing + <p class="note">If, during the handling of the <code title="event-load">load</code> event, the <a href="#browsing-context">browsing context</a> in the <code><a href="#the-iframe-element">iframe</a></code> is again <a href="#navigate" title="navigate">navigated</a>, that will further <a href="#delay-the-load-event">delay the load event</a>.</p> @@ -17949,7 +17949,7 @@ <li><p>If the load failed (e.g. the <a href="#url">URL</a> could not be <a href="#resolve-a-url" title="resolve a url">resolved</a>, there was an HTTP 404 error, there was a DNS error), <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-error"><a href="#event-error">error</a></code> at the + event</a> called <code title="event-error">error</code> at the element, then jump to the last step in the overall set of steps (fallback).</li> @@ -18137,7 +18137,7 @@ <li> <p>Once the resource is completely loaded, <a href="#queue-a-task">queue a - task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-load"><a href="#event-load">load</a></code> at the element.</p> + task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-load">load</code> at the element.</p> <p>The <a href="#task-source">task source</a> for this task<!--tasks mentioned in this section--> is the <a href="#dom-manipulation-task-source">DOM manipulation task @@ -19206,17 +19206,17 @@ <li><p>If <var title="">aborted</var> is true, set the <code title="dom-media-error"><a href="#dom-media-error">error</a></code> attribute to a new <code><a href="#mediaerror">MediaError</a></code> object whose <code title="dom-MediaError-code"><a href="#dom-mediaerror-code">code</a></code> attribute is set to <code title="dom-MediaError-MEDIA_ERR_ABORTED"><a href="#dom-mediaerror-media_err_aborted">MEDIA_ERR_ABORTED</a></code>, - <a href="#fire-a-progress-event">fire a progress event</a> called <code title="event-abort"><a href="#event-abort">abort</a></code> at the <a href="#media-element">media element</a>, + <a href="#fire-a-progress-event">fire a progress event</a> called <code title="event-media-abort"><a href="#event-media-abort">abort</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> that is in progress for the element, and <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-loadend"><a href="#event-loadend">loadend</a></code> at + event</a> called <code title="event-media-loadend"><a href="#event-media-loadend">loadend</a></code> at the <a href="#media-element">media element</a>, in the context of the same <a href="#fetch" title="fetch">fetching process</a>.</li> <li><p>Set the <code title="dom-media-error"><a href="#dom-media-error">error</a></code> attribute to null and the <a href="#autoplaying-flag">autoplaying flag</a> to true.</li> <li><p>If <var title="">emptied</var> is true, <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-emptied"><a href="#event-emptied">emptied</a></code> at + event</a> called <code title="event-media-emptied"><a href="#event-media-emptied">emptied</a></code> at the <a href="#media-element">media element</a>.</li> <li><p>Invoke the <a href="#media-element">media element</a>'s <a href="#concept-media-load-algorithm" title="concept-media-load-algorithm">resource selection @@ -19273,7 +19273,7 @@ <code title="dom-media-NETWORK_LOADING"><a href="#dom-media-network_loading">NETWORK_LOADING</a></code>.</li> <li><p>⌛ <a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-loadstart"><a href="#event-loadstart">loadstart</a></code> + event</a> called <code title="event-media-loadstart"><a href="#event-media-loadstart">loadstart</a></code> at the <a href="#media-element">media element</a>, with no relevant <a href="#fetch" title="fetch">fetching process</a>.</li> <li> @@ -19308,13 +19308,13 @@ value.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-error"><a href="#event-error">error</a></code> at the + event</a> called <code title="event-media-error"><a href="#event-media-error">error</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> that was used to try to obtain the <a href="#media-resource">media resource</a> in the <a href="#concept-media-load-resource" title="concept-media-load-resource">resource fetch algorithm</a>.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-loadend"><a href="#event-loadend">loadend</a></code> at + event</a> called <code title="event-media-loadend"><a href="#event-media-loadend">loadend</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> that was used to try to obtain the <a href="#media-resource">media resource</a> in the <a href="#concept-media-load-resource" title="concept-media-load-resource">resource fetch algorithm</a>.</li> @@ -19407,7 +19407,7 @@ the load failed.</li> <li><p><i title="">Failed</i>: <a href="#queue-a-task">Queue a task</a> to - <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-error"><a href="#event-error">error</a></code> at the <var title="">candidate</var> element, in the context of the <a href="#fetch" title="fetch">fetching process</a> that was used to try to + <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-error">error</code> at the <var title="">candidate</var> element, in the context of the <a href="#fetch" title="fetch">fetching process</a> that was used to try to obtain <var title="">candidate</var>'s corresponding <a href="#media-resource">media resource</a> in the <a href="#concept-media-load-resource" title="concept-media-load-resource">resource fetch algorithm</a>.</li> @@ -19490,13 +19490,13 @@ <p>Every 350ms (±200ms) or for every byte received, whichever is <em>least</em> frequent, <a href="#queue-a-task">queue a task</a> to - <a href="#fire-a-progress-event">fire a progress event</a> called <code title="event-progress"><a href="#event-progress">progress</a></code> at the element, in the + <a href="#fire-a-progress-event">fire a progress event</a> called <code title="event-media-progress"><a href="#event-media-progress">progress</a></code> at the element, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</p> <p>If at any point the user agent has received no data for more than about three seconds, then <a href="#queue-a-task">queue a task</a> to - <a href="#fire-a-progress-event">fire a progress event</a> called <code title="event-stalled"><a href="#event-stalled">stalled</a></code> at the element, in the + <a href="#fire-a-progress-event">fire a progress event</a> called <code title="event-media-stalled"><a href="#event-media-stalled">stalled</a></code> at the element, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</p> @@ -19514,7 +19514,7 @@ resource or not, or while waiting for user input in an interactive resource. When a <a href="#media-element">media element</a>'s download has been suspended, the user agent must set the <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> to <code title="dom-media-NETWORK_IDLE"><a href="#dom-media-network_idle">NETWORK_IDLE</a></code> and <a href="#queue-a-task">queue - a task</a> to <a href="#fire-a-progress-event">fire a progress event</a> called <code title="event-suspend"><a href="#event-suspend">suspend</a></code> at the element, in the + a task</a> to <a href="#fire-a-progress-event">fire a progress event</a> called <code title="event-media-suspend"><a href="#event-media-suspend">suspend</a></code> at the element, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm. If and when downloading of the resource resumes, the user agent must set the <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> to <code title="dom-media-NETWORK_LOADING"><a href="#dom-media-network_loading">NETWORK_LOADING</a></code>.</p> @@ -19609,7 +19609,7 @@ attribute to the duration of the resource.</p> <p class="note">The user agent <a href="#durationChange">will</a> <a href="#queue-a-task">queue a task</a> to - <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-durationchange"><a href="#event-durationchange">durationchange</a></code> at the + <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-media-durationchange"><a href="#event-media-durationchange">durationchange</a></code> at the element at this point.</p> </li> @@ -19617,7 +19617,7 @@ <li id="fire-loadedmetadata"> <p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-loadedmetadata"><a href="#event-loadedmetadata">loadedmetadata</a></code> at the + event</a> called <code title="event-media-loadedmetadata"><a href="#event-media-loadedmetadata">loadedmetadata</a></code> at the element.</p> <p class="note">Before this task is run, as part of the event @@ -19643,7 +19643,7 @@ <p>Once the <code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> attribute reaches <code title="dom-media-HAVE_CURRENT_DATA"><a href="#dom-media-have_current_data">HAVE_CURRENT_DATA</a></code>, - <a href="#fire-loadeddata">after the <code title="event-loadeddata">loadeddata</code> event has been + <a href="#fire-loadeddata">after the <code title="event-media-loadeddata">loadeddata</code> event has been fired</a>, set the element's <a href="#delaying-the-load-event-flag">delaying-the-load-event flag</a> to false. This stops <a href="#delay-the-load-event" title="delay the load event">delaying the load event</a>.</p> @@ -19671,7 +19671,7 @@ <dd> <p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-progress"><a href="#event-progress">progress</a></code> + event</a> called <code title="event-media-progress"><a href="#event-media-progress">progress</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</p> @@ -19696,19 +19696,19 @@ <code title="dom-MediaError-MEDIA_ERR_NETWORK"><a href="#dom-mediaerror-media_err_network">MEDIA_ERR_NETWORK</a></code>.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-error"><a href="#event-error">error</a></code> at + event</a> called <code title="event-media-error"><a href="#event-media-error">error</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-loadend"><a href="#event-loadend">loadend</a></code> + event</a> called <code title="event-media-loadend"><a href="#event-media-loadend">loadend</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</li> <li><p>Set the element's <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> attribute to the <a href="#dom-media-network_empty" title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</a> value and <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-emptied"><a href="#event-emptied">emptied</a></code> + event</a> called <code title="event-media-emptied"><a href="#event-media-emptied">emptied</a></code> at the element.</li> <li><p>Set the element's <a href="#delaying-the-load-event-flag">delaying-the-load-event @@ -19738,19 +19738,19 @@ <code title="dom-MediaError-MEDIA_ERR_DECODE"><a href="#dom-mediaerror-media_err_decode">MEDIA_ERR_DECODE</a></code>.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-error"><a href="#event-error">error</a></code> at + event</a> called <code title="event-media-error"><a href="#event-media-error">error</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-loadend"><a href="#event-loadend">loadend</a></code> + event</a> called <code title="event-media-loadend"><a href="#event-media-loadend">loadend</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</li> <li><p>Set the element's <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> attribute to the <a href="#dom-media-network_empty" title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</a> value and <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-emptied"><a href="#event-emptied">emptied</a></code> + event</a> called <code title="event-media-emptied"><a href="#event-media-emptied">emptied</a></code> at the element.</li> <li><p>Set the element's <a href="#delaying-the-load-event-flag">delaying-the-load-event @@ -19783,12 +19783,12 @@ <code title="dom-MediaError-MEDIA_ERR_ABORT">MEDIA_ERR_ABORT</code>.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-abort"><a href="#event-abort">abort</a></code> at + event</a> called <code title="event-media-abort"><a href="#event-media-abort">abort</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-loadend"><a href="#event-loadend">loadend</a></code> + event</a> called <code title="event-media-loadend"><a href="#event-media-loadend">loadend</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</li> @@ -19797,7 +19797,7 @@ element's <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> attribute to the <a href="#dom-media-network_empty" title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</a> value and <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-emptied"><a href="#event-emptied">emptied</a></code> + event</a> called <code title="event-media-emptied"><a href="#event-media-emptied">emptied</a></code> at the element. Otherwise, set the element's <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> attribute to the <a href="#dom-media-network_idle" title="dom-media-NETWORK_IDLE">NETWORK_IDLE</a> value.</li> @@ -19846,7 +19846,7 @@ even once the <a href="#ended-playback" title="ended playback">playback has ended</a>, because there is always the chance the user will seek back to the start. In fact, in this situation, once <a href="#ended-playback" title="ended playback">playback has ended</a>, the user agent - will end up dispatching a <code title="event-stalled"><a href="#event-stalled">stalled</a></code> event, as described + will end up dispatching a <code title="event-media-stalled"><a href="#event-media-stalled">stalled</a></code> event, as described earlier.</p> </li> @@ -19855,12 +19855,12 @@ <code title="dom-media-NETWORK_LOADED"><a href="#dom-media-network_loaded">NETWORK_LOADED</a></code>.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-load"><a href="#event-load">load</a></code> at the + event</a> called <code title="event-media-load"><a href="#event-media-load">load</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</li> <li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-progress-event">fire a progress - event</a> called <code title="event-loadend"><a href="#event-loadend">loadend</a></code> at + event</a> called <code title="event-media-loadend"><a href="#event-media-loadend">loadend</a></code> at the <a href="#media-element">media element</a>, in the context of the <a href="#fetch" title="fetch">fetching process</a> started by this instance of this algorithm.</li> @@ -19993,16 +19993,16 @@ resource</a> changes (e.g. from being unknown to known, or from a previously established length to a new length) the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called - <code title="event-durationchange"><a href="#event-durationchange">durationchange</a></code> at the + <code title="event-media-durationchange"><a href="#event-media-durationchange">durationchange</a></code> at the <a href="#media-element">media element</a>.</p> <p class="example">If an "infinite" stream ends for some reason, then the duration would change from positive Infinity to the time of - the last frame or sample in the stream, and the <code title="event-durationchange"><a href="#event-durationchange">durationchange</a></code> event would be + the last frame or sample in the stream, and the <code title="event-media-durationchange"><a href="#event-media-durationchange">durationchange</a></code> event would be fired. Similarly, if the user agent initially estimated the <a href="#media-resource">media resource</a>'s duration instead of determining it precisely, and later revises the estimate based on new information, - then the duration would change and the <code title="event-durationchange"><a href="#event-durationchange">durationchange</a></code> event would be + then the duration would change and the <code title="event-media-durationchange"><a href="#event-media-durationchange">durationchange</a></code> event would be fired.</p> <p><a href="#media-element" title="media element">Media elements</a> have a @@ -20029,9 +20029,9 @@ <p>When the <a href="#earliest-possible-position">earliest possible position</a> changes, then: if the <a href="#current-playback-position">current playback position</a> is before the <a href="#earliest-possible-position">earliest possible position</a>, the user agent must <a href="#dom-media-seek" title="dom-media-seek">seek</a> to the <a href="#earliest-possible-position">earliest possible - position</a>; otherwise, if the user agent has not fired a <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> event at the element in + position</a>; otherwise, if the user agent has not fired a <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> event at the element in the past 15 to 250ms, then the user agent must <a href="#queue-a-task">queue a - task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the element.</p> + task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the element.</p> <p class="note">Because of the above requirement and the requirement in the <a href="#concept-media-load-resource" title="concept-media-load-resource">resource fetch @@ -20144,7 +20144,7 @@ <dd> - <p class="note">A <code title="event-loadedmetadata"><a href="#event-loadedmetadata">loadedmetadata</a></code> DOM event <a href="#fire-loadedmetadata">will be fired</a> as part of the <code title="dom-media-load"><a href="#dom-media-load">load()</a></code> algorithm.</p> + <p class="note">A <code title="event-media-loadedmetadata"><a href="#event-media-loadedmetadata">loadedmetadata</a></code> DOM event <a href="#fire-loadedmetadata">will be fired</a> as part of the <code title="dom-media-load"><a href="#dom-media-load">load()</a></code> algorithm.</p> </dd> @@ -20160,7 +20160,7 @@ <p id="fire-loadeddata">If this is the first time this occurs for this <a href="#media-element">media element</a> since the <code title="dom-media-load"><a href="#dom-media-load">load()</a></code> algorithm was last invoked, the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a - simple event</a> called <code title="event-loadeddata"><a href="#event-loadeddata">loadeddata</a></code> at the element.</p> + simple event</a> called <code title="event-media-loadeddata"><a href="#event-media-loadeddata">loadeddata</a></code> at the element.</p> <p>If the new ready state is <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code> or <code title="dom-media-HAVE_ENOUGH_DATA"><a href="#dom-media-have_enough_data">HAVE_ENOUGH_DATA</a></code>, @@ -20175,7 +20175,7 @@ <dd> - <p class="note">A <code title="event-waiting"><a href="#event-waiting">waiting</a></code> DOM + <p class="note">A <code title="event-media-waiting"><a href="#event-media-waiting">waiting</a></code> DOM event <a href="#fire-waiting-when-waiting">can be fired</a>, depending on the current state of playback.</p> @@ -20188,11 +20188,11 @@ <dd> <p>The user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a - simple event</a> called <code title="event-canplay"><a href="#event-canplay">canplay</a></code>.</p> + simple event</a> called <code title="event-media-canplay"><a href="#event-media-canplay">canplay</a></code>.</p> <p>If the element is <a href="#potentially-playing">potentially playing</a>, the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-playing"><a href="#event-playing">playing</a></code>.</p> + event</a> called <code title="event-media-playing"><a href="#event-media-playing">playing</a></code>.</p> </dd> @@ -20203,16 +20203,16 @@ <p>If the previous ready state was <code title="dom-media-HAVE_CURRENT_DATA"><a href="#dom-media-have_current_data">HAVE_CURRENT_DATA</a></code> or less, the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire - a simple event</a> called <code title="event-canplay"><a href="#event-canplay">canplay</a></code>, and, if the element is also + a simple event</a> called <code title="event-media-canplay"><a href="#event-media-canplay">canplay</a></code>, and, if the element is also <a href="#potentially-playing">potentially playing</a>, <a href="#queue-a-task">queue a task</a> to - <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-playing"><a href="#event-playing">playing</a></code>.</p> + <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-media-playing"><a href="#event-media-playing">playing</a></code>.</p> <p>If the <a href="#autoplaying-flag">autoplaying flag</a> is true, and the <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> attribute is true, and the <a href="#media-element">media element</a> has an <code title="attr-media-autoplay"><a href="#attr-media-autoplay">autoplay</a></code> attribute specified, then the user agent may also set the <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> attribute to false, <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> - called <code title="event-play"><a href="#event-play">play</a></code>, and <a href="#queue-a-task">queue a - task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-playing"><a href="#event-playing">playing</a></code>.</p> + called <code title="event-media-play"><a href="#event-media-play">play</a></code>, and <a href="#queue-a-task">queue a + task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-media-playing"><a href="#event-media-playing">playing</a></code>.</p> <p class="note">User agents are not required to autoplay, and it is suggested that user agents honor user preferences on the @@ -20221,7 +20221,7 @@ to override the behavior if so desired.</p> <p>In any case, the user agent must finally <a href="#queue-a-task">queue a - task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-canplaythrough"><a href="#event-canplaythrough">canplaythrough</a></code>.</p> + task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-media-canplaythrough"><a href="#event-media-canplaythrough">canplaythrough</a></code>.</p> </dd> @@ -20473,7 +20473,7 @@ <p>When a <a href="#media-element">media element</a> that is <a href="#potentially-playing">potentially playing</a> stops playing because it has <a href="#paused-for-user-interaction">paused for user interaction</a>, the user agent must <a href="#queue-a-task">queue a task</a> to - <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the element.</p> + <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the element.</p> <p id="fire-waiting-when-waiting">When a <a href="#media-element">media element</a> that is <a href="#potentially-playing">potentially playing</a> stops playing because its @@ -20483,9 +20483,9 @@ <a href="#stopped-due-to-errors">stopped due to errors</a>, or playback having <a href="#paused-for-user-interaction">paused for user interaction</a>, or the <a href="#dom-media-seek" title="dom-media-seek">seeking algorithm</a> being invoked, the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> + event</a> called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the element, and <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-waiting"><a href="#event-waiting">waiting</a></code> at + event</a> called <code title="event-media-waiting"><a href="#event-media-waiting">waiting</a></code> at the element.</p> <p>When the <a href="#current-playback-position">current playback position</a> reaches the end @@ -20506,10 +20506,10 @@ true.</li> <li><p>The user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire - a simple event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the element.</li> + a simple event</a> called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the element.</li> <li><p>The user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire - a simple event</a> called <code title="event-ended"><a href="#event-ended">ended</a></code> + a simple event</a> called <code title="event-media-ended"><a href="#event-media-ended">ended</a></code> at the element.</li> </ol><p>When the <a href="#current-playback-position">current playback position</a> reaches the @@ -20520,7 +20520,7 @@ <ol><li><p>Stop playback.</li> <li><p>The user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire - a simple event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the element.</li> + a simple event</a> called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the element.</li> </ol><p>The <dfn id="dom-media-defaultplaybackrate" title="dom-media-defaultPlaybackRate"><code>defaultPlaybackRate</code></dfn> attribute gives the desired speed at which the <a href="#media-resource">media @@ -20557,7 +20557,7 @@ change value (either by being set by script or by being changed directly by the user agent, e.g. in response to user control) the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-ratechange"><a href="#event-ratechange">ratechange</a></code> + event</a> called <code title="event-media-ratechange"><a href="#event-media-ratechange">ratechange</a></code> at the <a href="#media-element">media element</a>.</p> <p>The <dfn id="dom-media-played" title="dom-media-played"><code>played</code></dfn> @@ -20584,7 +20584,7 @@ <p class="note">This <a href="#seekUpdate">will cause</a> the user agent to <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the <a href="#media-element">media + event</a> called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the <a href="#media-element">media element</a>.</p> <!-- if we're already playing at this point, it might also fire 'waiting' --> @@ -20599,21 +20599,21 @@ the following substeps:</p> <ol><li><p><a href="#queue-a-task">Queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> - called <code title="event-play"><a href="#event-play">play</a></code> at the element.</li> + called <code title="event-media-play"><a href="#event-media-play">play</a></code> at the element.</li> <li><p>If the <a href="#media-element">media element</a>'s <code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> attribute has the value <code title="dom-media-HAVE_NOTHING"><a href="#dom-media-have_nothing">HAVE_NOTHING</a></code>, <code title="dom-media-HAVE_METADATA"><a href="#dom-media-have_metadata">HAVE_METADATA</a></code>, or <code title="dom-media-HAVE_CURRENT_DATA"><a href="#dom-media-have_current_data">HAVE_CURRENT_DATA</a></code>, <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> - called <code title="event-waiting"><a href="#event-waiting">waiting</a></code> at the + called <code title="event-media-waiting"><a href="#event-media-waiting">waiting</a></code> at the element.</li> <li><p>Otherwise, the <a href="#media-element">media element</a>'s <code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> attribute has the value <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code> or <code title="dom-media-HAVE_ENOUGH_DATA"><a href="#dom-media-have_enough_data">HAVE_ENOUGH_DATA</a></code>; <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> - called <code title="event-playing"><a href="#event-playing">playing</a></code> at the + called <code title="event-media-playing"><a href="#event-media-playing">playing</a></code> at the element.</li> </ol></li> @@ -20639,9 +20639,9 @@ <li><p>If the second step above changed the value of <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code>, then the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> - called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the + called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the element, and <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-pause"><a href="#event-pause">pause</a></code> at the + event</a> called <code title="event-media-pause"><a href="#event-media-pause">pause</a></code> at the element.</li> </ol><hr><p id="media-playback">When a <a href="#media-element">media element</a> is @@ -20670,7 +20670,7 @@ <p>The <code title="dom-media-playbackRate"><a href="#dom-media-playbackrate">playbackRate</a></code> can be 0.0, in which case the <a href="#current-playback-position">current playback position</a> doesn't move, despite playback not being paused (<code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> doesn't become true, and the - <code title="event-pause"><a href="#event-pause">pause</a></code> event doesn't fire).</p> + <code title="event-media-pause"><a href="#event-media-pause">pause</a></code> event doesn't fire).</p> <p><a href="#media-element" title="media element">Media elements</a> that are <a href="#potentially-playing">potentially playing</a> while not <a href="#in-a-document">in a @@ -20710,9 +20710,9 @@ element.</p></li> --><li><p>If the time was reached through the usual monotonic increase of the current playback position during normal playback, and if the - user agent has not fired a <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> event at the element in + user agent has not fired a <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> event at the element in the past 15 to 250ms, then the user agent must <a href="#queue-a-task">queue a - task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the element. (In the + task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the element. (In the other cases, such as explicit seeks, relevant events get fired as part of the overall process of changing the current playback position.)</p> @@ -20829,21 +20829,21 @@ attribute must be set to true.</li> <li id="seekUpdate"><p>The user agent must <a href="#queue-a-task">queue a - task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> at the element.</li> + task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called <code title="event-media-timeupdate"><a href="#event-media-timeupdate">timeupdate</a></code> at the element.</li> <li><p>If the <a href="#media-element">media element</a> was <a href="#potentially-playing">potentially playing</a> immediately before it started seeking, but seeking caused its <code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> attribute to change to a value lower than <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code>, the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-waiting"><a href="#event-waiting">waiting</a></code> at + event</a> called <code title="event-media-waiting"><a href="#event-media-waiting">waiting</a></code> at the element.</li> <li><p>If, when it reaches this step, the user agent has still not established whether or not the <a href="#media-data">media data</a> for the <var title="">new playback position</var> is available, and, if it is, decoded enough data to play back that position, the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> - called <code title="event-seeking"><a href="#event-seeking">seeking</a></code> at the + called <code title="event-media-seeking"><a href="#event-media-seeking">seeking</a></code> at the element.</li> <li><p>If the seek was in response to a DOM method call or setting @@ -20859,7 +20859,7 @@ attribute must be set to false.</li> <li><p>The user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire - a simple event</a> called <code title="event-seeked"><a href="#event-seeked">seeked</a></code> at the element.</li> + a simple event</a> called <code title="event-media-seeked"><a href="#event-media-seeked">seeked</a></code> at the element.</li> </ol><p>The <dfn id="dom-media-seekable" title="dom-media-seekable"><code>seekable</code></dfn> attribute must return a new static <a href="#normalized-timeranges-object">normalized @@ -20976,7 +20976,7 @@ <p>Whenever either the <code title="dom-media-muted"><a href="#dom-media-muted">muted</a></code> or <code title="dom-media-volume"><a href="#dom-media-volume">volume</a></code> attributes are changed, the user agent must <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple - event</a> called <code title="event-volumechange"><a href="#event-volumechange">volumechange</a></code> at the <a href="#media-element">media + event</a> called <code title="event-media-volumechange"><a href="#event-media-volumechange">volumechange</a></code> at the <a href="#media-element">media element</a>.</p> </div><h5 id="time-ranges"><span class="secno">4.8.10.11 </span>Time ranges</h5><p>Objects implementing the <code><a href="#timeranges">TimeRanges</a></code> interface @@ -21054,105 +21054,105 @@ <th>Dispatched when... <th>Preconditions - <tbody><tr><td><dfn id="event-loadstart" title="event-loadstart"><code>loadstart</code></dfn> + <tbody><tr><td><dfn id="event-media-loadstart" title="event-media-loadstart"><code>loadstart</code></dfn> <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a> <td>The user agent begins looking for <a href="#media-data">media data</a>, as part of the <a href="#concept-media-load-algorithm" title="concept-media-load-algorithm">resource selection algorithm</a>. <td><code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> equals <code title="dom-media-NETWORK_LOADING"><a href="#dom-media-network_loading">NETWORK_LOADING</a></code> - <tr><td><dfn id="event-progress" title="event-progress"><code>progress</code></dfn> + <tr><td><dfn id="event-media-progress" title="event-media-progress"><code>progress</code></dfn> <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a> <td>The user agent is fetching <a href="#media-data">media data</a>. <td><code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> equals <code title="dom-media-NETWORK_LOADING"><a href="#dom-media-network_loading">NETWORK_LOADING</a></code> - <tr><td><dfn id="event-suspend" title="event-suspend"><code>suspend</code></dfn> + <tr><td><dfn id="event-media-suspend" title="event-media-suspend"><code>suspend</code></dfn> <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a> <td>The user agent is intentionally not currently fetching <a href="#media-data">media data</a>, but does not have the entire <a href="#media-resource">media resource</a> downloaded. <td><code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> equals <code title="dom-media-NETWORK_IDLE"><a href="#dom-media-network_idle">NETWORK_IDLE</a></code> - <tr><td><dfn id="event-load" title="event-load"><code>load</code></dfn> + <tr><td><dfn id="event-media-load" title="event-media-load"><code>load</code></dfn> <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a> <td>The user agent finishes fetching the entire <a href="#media-resource">media resource</a>. <td><code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> equals <code title="dom-media-NETWORK_LOADED"><a href="#dom-media-network_loaded">NETWORK_LOADED</a></code> - <tr><td><dfn id="event-abort" title="event-abort"><code>abort</code></dfn> + <tr><td><dfn id="event-media-abort" title="event-media-abort"><code>abort</code></dfn> <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a> <td>The user agent stops fetching the <a href="#media-data">media data</a> before it is completely downloaded, but not due to an error. <td><code title="dom-media-error"><a href="#dom-media-error">error</a></code> is an object with the code <code title="dom-MediaError-MEDIA_ERR_ABORTED"><a href="#dom-mediaerror-media_err_aborted">MEDIA_ERR_ABORTED</a></code>. <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> equals either <code title="dom-media-NETWORK_EMPTY"><a href="#dom-media-network_empty">NETWORK_EMPTY</a></code> or <code title="dom-media-NETWORK_IDLE"><a href="#dom-media-network_idle">NETWORK_IDLE</a></code>, depending on when the download was aborted. - <tr><td><dfn id="event-error" title="event-error"><code>error</code></dfn> + <tr><td><dfn id="event-media-error" title="event-media-error"><code>error</code></dfn> <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a> <td>An error occurs while fetching the <a href="#media-data">media data</a>. <td><code title="dom-media-error"><a href="#dom-media-error">error</a></code> is an object with the code <code title="dom-MediaError-MEDIA_ERR_NETWORK"><a href="#dom-mediaerror-media_err_network">MEDIA_ERR_NETWORK</a></code> or higher. <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> equals either <code title="dom-media-NETWORK_EMPTY"><a href="#dom-media-network_empty">NETWORK_EMPTY</a></code> or <code title="dom-media-NETWORK_LOADED"><a href="#dom-media-network_loaded">NETWORK_LOADED</a></code>, depending on when the download was aborted. - <tr><td><dfn id="event-loadend" title="event-loadend"><code>loadend</code></dfn> + <tr><td><dfn id="event-media-loadend" title="event-media-loadend"><code>loadend</code></dfn> <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a> <td>The user agent stops fetching the <a href="#media-data">media data</a>, for whatever reason. - <td>One of <code title="event-load"><a href="#event-load">load</a></code>, <code title="event-abort"><a href="#event-abort">abort</a></code>, or <code title="event-error"><a href="#event-error">error</a></code> has just fired. - <tr><td><dfn id="event-emptied" title="event-emptied"><code>emptied</code></dfn> + <td>One of <code title="event-media-load"><a href="#event-media-load">load</a></code>, <code title="event-media-abort"><a href="#event-media-abort">abort</a></code>, or <code title="event-media-error"><a href="#event-media-error">error</a></code> has just fired. + <tr><td><dfn id="event-media-emptied" title="event-media-emptied"><code>emptied</code></dfn> <td><code>Event</code> <td>A <a href="#media-element">media element</a> whose <code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> was previously not in the <code title="dom-media-NETWORK_EMPTY"><a href="#dom-media-network_empty">NETWORK_EMPTY</a></code> state has just switched to that state (either because of a fatal error during load that's about to be reported, or because the <code title="dom-media-load"><a href="#dom-media-load">load()</a></code> method was invoked while the <a href="#concept-media-load-algorithm" title="concept-media-load-algorithm">resource selection algorithm</a> was already running, in which case it is fired synchronously during the <code title="dom-media-load"><a href="#dom-media-load">load()</a></code> method call). <td><code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> is <code title="dom-media-NETWORK_EMPTY"><a href="#dom-media-network_empty">NETWORK_EMPTY</a></code>; all the IDL attributes are in their initial states. - <tr><td><dfn id="event-stalled" title="event-stalled"><code>stalled</code></dfn> + <tr><td><dfn id="event-media-stalled" title="event-media-stalled"><code>stalled</code></dfn> <td><code>ProgressEvent</code> <td>The user agent is trying to fetch <a href="#media-data">media data</a>, but data is unexpectedly not forthcoming. <td><code title="dom-media-networkState"><a href="#dom-media-networkstate">networkState</a></code> is <code title="dom-media-NETWORK_LOADING"><a href="#dom-media-network_loading">NETWORK_LOADING</a></code>. - <tbody><tr><td><dfn id="event-play" title="event-play"><code>play</code></dfn> + <tbody><tr><td><dfn id="event-media-play" title="event-media-play"><code>play</code></dfn> <td><code>Event</code> <td>Playback has begun. Fired after the <code title="dom-media-play"><a href="#dom-media-play">play()</a></code> method has returned. <td><code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> is newly false. - <tr><td><dfn id="event-pause" title="event-pause"><code>pause</code></dfn> + <tr><td><dfn id="event-media-pause" title="event-media-pause"><code>pause</code></dfn> <td><code>Event</code> <td>Playback has been paused. Fired after the <code title="dom-media-pause"><a href="#dom-media-pause">pause</a></code> method has returned. <td><code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> is newly true. - <tbody><tr><td><dfn id="event-loadedmetadata" title="event-loadedmetadata"><code>loadedmetadata</code></dfn> + <tbody><tr><td><dfn id="event-media-loadedmetadata" title="event-media-loadedmetadata"><code>loadedmetadata</code></dfn> <td><code>Event</code> <td>The user agent has just determined the duration and dimensions of the <a href="#media-resource">media resource</a>. <td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is newly equal to <code title="dom-media-HAVE_METADATA"><a href="#dom-media-have_metadata">HAVE_METADATA</a></code> or greater for the first time. - <tr><td><dfn id="event-loadeddata" title="event-loadeddata"><code>loadeddata</code></dfn> + <tr><td><dfn id="event-media-loadeddata" title="event-media-loadeddata"><code>loadeddata</code></dfn> <td><code>Event</code> <td>The user agent can render the <a href="#media-data">media data</a> at the <a href="#current-playback-position">current playback position</a> for the first time. <td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> newly increased to <code title="dom-media-HAVE_CURRENT_DATA"><a href="#dom-media-have_current_data">HAVE_CURRENT_DATA</a></code> or greater for the first time. - <tr><td><dfn id="event-waiting" title="event-waiting"><code>waiting</code></dfn> + <tr><td><dfn id="event-media-waiting" title="event-media-waiting"><code>waiting</code></dfn> <td><code>Event</code> <td>Playback has stopped because the next frame is not available, but the user agent expects that frame to become available in due course. <td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is newly equal to or less than <code title="dom-media-HAVE_CURRENT_DATA"><a href="#dom-media-have_current_data">HAVE_CURRENT_DATA</a></code>, and <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> is false. Either <code title="dom-media-seeking"><a href="#dom-media-seeking">seeking</a></code> is true, or the <a href="#current-playback-position">current playback position</a> is not contained in any of the ranges in <code title="dom-media-buffered"><a href="#dom-media-buffered">buffered</a></code>. It is possible for playback to stop for two other reasons without <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> being false, but those two reasons do not fire this event: maybe <a href="#ended-playback" title="ended playback">playback ended</a>, or playback <a href="#stopped-due-to-errors">stopped due to errors</a>. - <tr><td><dfn id="event-playing" title="event-playing"><code>playing</code></dfn> + <tr><td><dfn id="event-media-playing" title="event-media-playing"><code>playing</code></dfn> <td><code>Event</code> <td>Playback has started. <td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is newly equal to or greater than <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code>, <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> is false, <code title="dom-media-seeking"><a href="#dom-media-seeking">seeking</a></code> is false, or the <a href="#current-playback-position">current playback position</a> is contained in one of the ranges in <code title="dom-media-buffered"><a href="#dom-media-buffered">buffered</a></code>. - <tr><td><dfn id="event-canplay" title="event-canplay"><code>canplay</code></dfn> + <tr><td><dfn id="event-media-canplay" title="event-media-canplay"><code>canplay</code></dfn> <td><code>Event</code> <td>The user agent can resume playback of the <a href="#media-data">media data</a>, but estimates that if playback were to be started now, the <a href="#media-resource">media resource</a> could not be rendered at the current playback rate up to its end without having to stop for further buffering of content. <td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> newly increased to <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code> or greater. - <tr><td><dfn id="event-canplaythrough" title="event-canplaythrough"><code>canplaythrough</code></dfn> + <tr><td><dfn id="event-media-canplaythrough" title="event-media-canplaythrough"><code>canplaythrough</code></dfn> <td><code>Event</code> <td>The user agent estimates that if playback were to be started now, the <a href="#media-resource">media resource</a> could be rendered at the current playback rate all the way to its end without having to stop for further buffering. <td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is newly equal to <code title="dom-media-HAVE_ENOUGH_DATA"><a href="#dom-media-have_enough_data">HAVE_ENOUGH_DATA</a></code>. - <tbody><tr><td><dfn id="event-seeking" title="event-seeking"><code>seeking</code></dfn> + <tbody><tr><td><dfn id="event-media-seeking" title="event-media-seeking"><code>seeking</code></dfn> <td><code>Event</code> <td>The <code title="dom-media-seeking"><a href="#dom-media-seeking">seeking</a></code> IDL attribute changed to true and the seek operation is taking long enough that the user agent has time to fire the event. <td> - <tr><td><dfn id="event-seeked" title="event-seeked"><code>seeked</code></dfn> + <tr><td><dfn id="event-media-seeked" title="event-media-seeked"><code>seeked</code></dfn> <td><code>Event</code> <td>The <code title="dom-media-seeking"><a href="#dom-media-seeking">seeking</a></code> IDL attribute changed to false. <td> - <tr><td><dfn id="event-timeupdate" title="event-timeupdate"><code>timeupdate</code></dfn> + <tr><td><dfn id="event-media-timeupdate" title="event-media-timeupdate"><code>timeupdate</code></dfn> <td><code>Event</code> <td>The <a href="#current-playback-position">current playback position</a> changed as part of normal playback or in an especially interesting way, for example discontinuously. <td> - <tr><td><dfn id="event-ended" title="event-ended"><code>ended</code></dfn> + <tr><td><dfn id="event-media-ended" title="event-media-ended"><code>ended</code></dfn> <td><code>Event</code> <td>Playback has stopped because the end of the <a href="#media-resource">media resource</a> was reached. <td><code title="dom-media-currentTime"><a href="#dom-media-currenttime">currentTime</a></code> equals the end of the <a href="#media-resource">media resource</a>; <code title="dom-media-ended"><a href="#dom-media-ended">ended</a></code> is true. - <tbody><tr><td><dfn id="event-ratechange" title="event-ratechange"><code>ratechange</code></dfn> + <tbody><tr><td><dfn id="event-media-ratechange" title="event-media-ratechange"><code>ratechange</code></dfn> <td><code>Event</code> <td>Either the <code title="dom-media-defaultPlaybackRate"><a href="#dom-media-defaultplaybackrate">defaultPlaybackRate</a></code> or the <code title="dom-media-playbackRate"><a href="#dom-media-playbackrate">playbackRate</a></code> attribute has just been updated. <td> - <tr><td><dfn id="event-durationchange" title="event-durationchange"><code>durationchange</code></dfn> + <tr><td><dfn id="event-media-durationchange" title="event-media-durationchange"><code>durationchange</code></dfn> <td><code>Event</code> <td>The <code title="dom-media-duration"><a href="#dom-media-duration">duration</a></code> attribute has just been updated. <td> - <tr><td><dfn id="event-volumechange" title="event-volumechange"><code>volumechange</code></dfn> + <tr><td><dfn id="event-media-volumechange" title="event-media-volumechange"><code>volumechange</code></dfn> <td><code>Event</code> <td>Either the <code title="dom-media-volume"><a href="#dom-media-volume">volume</a></code> attribute or the <code title="dom-media-muted"><a href="#dom-media-muted">muted</a></code> attribute has changed. Fired after the relevant attribute's setter has returned. <td> @@ -30894,11 +30894,11 @@ source</a> once the resource has been <a href="#fetch" title="fetch">fetched</a>, must, if the download was successful and the image is <i title="input-img-available"><a href="#input-img-available">available</a></i>, <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> called - <code title="event-load"><a href="#event-load">load</a></code> at the <code><a href="#the-input-element">input</a></code> + <code title="event-load">load</code> at the <code><a href="#the-input-element">input</a></code> element; and otherwise, if the fetching process fails without a response from the remote server, or completes but the image is not a valid or supported image, <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a - simple event</a> called <code title="event-error"><a href="#event-error">error</a></code> on + simple event</a> called <code title="event-error">error</code> on the <code><a href="#the-input-element">input</a></code> element.</p> <hr></div><p>The <dfn id="attr-input-alt" title="attr-input-alt"><code>alt</code></dfn> attribute @@ -45332,9 +45332,9 @@ attributes.</p> <table><thead><tr><th><a href="#event-handler-attributes-0" title="event handler attributes">event handler attribute</a> <th><a href="#event-handler-event-type">Event handler event type</a> - <tbody><tr><td><dfn id="handler-onabort" title="handler-onabort"><code>onabort</code></dfn> <td> <code title="event-abort"><a href="#event-abort">abort</a></code> - <tr><td><dfn id="handler-oncanplay" title="handler-oncanplay"><code>oncanplay</code></dfn> <td> <code title="event-canplay"><a href="#event-canplay">canplay</a></code> - <tr><td><dfn id="handler-oncanplaythrough" title="handler-oncanplaythrough"><code>oncanplaythrough</code></dfn> <td> <code title="event-canplaythrough"><a href="#event-canplaythrough">canplaythrough</a></code> + <tbody><tr><td><dfn id="handler-onabort" title="handler-onabort"><code>onabort</code></dfn> <td> <code title="event-abort">abort</code> + <tr><td><dfn id="handler-oncanplay" title="handler-oncanplay"><code>oncanplay</code></dfn> <td> <code title="event-canplay">canplay</code> + <tr><td><dfn id="handler-oncanplaythrough" title="handler-oncanplaythrough"><code>oncanplaythrough</code></dfn> <td> <code title="event-canplaythrough">canplaythrough</code> <tr><td><dfn id="handler-onchange" title="handler-onchange"><code>onchange</code></dfn> <td> <code title="event-change">change</code> <!-- widely used --> <tr><td><dfn id="handler-onclick" title="handler-onclick"><code>onclick</code></dfn> <td> <code title="event-click">click</code> <!-- widely used --> <tr><td><dfn id="handler-oncontextmenu" title="handler-oncontextmenu"><code>oncontextmenu</code></dfn> <td> <code title="event-contextmenu">contextmenu</code> <!-- widely used --> @@ -45346,9 +45346,9 @@ <tr><td><dfn id="handler-ondragover" title="handler-ondragover"><code>ondragover</code></dfn> <td> <code title="event-dragover"><a href="#event-dragover">dragover</a></code> <tr><td><dfn id="handler-ondragstart" title="handler-ondragstart"><code>ondragstart</code></dfn> <td> <code title="event-dragstart"><a href="#event-dragstart">dragstart</a></code> <!-- widely used --> <tr><td><dfn id="handler-ondrop" title="handler-ondrop"><code>ondrop</code></dfn> <td> <code title="event-drop"><a href="#event-drop">drop</a></code> - <tr><td><dfn id="handler-ondurationchange" title="handler-ondurationchange"><code>ondurationchange</code></dfn> <td> <code title="event-durationchange"><a href="#event-durationchange">durationchange</a></code> - <tr><td><dfn id="handler-onemptied" title="handler-onemptied"><code>onemptied</code></dfn> <td> <code title="event-emptied"><a href="#event-emptied">emptied</a></code> - <tr><td><dfn id="handler-onended" title="handler-onended"><code>onended</code></dfn> <td> <code title="event-ended"><a href="#event-ended">ended</a></code> + <tr><td><dfn id="handler-ondurationchange" title="handler-ondurationchange"><code>ondurationchange</code></dfn> <td> <code title="event-durationchange">durationchange</code> + <tr><td><dfn id="handler-onemptied" title="handler-onemptied"><code>onemptied</code></dfn> <td> <code title="event-emptied">emptied</code> + <tr><td><dfn id="handler-onended" title="handler-onended"><code>onended</code></dfn> <td> <code title="event-ended">ended</code> <tr><td><dfn id="handler-onformchange" title="handler-onformchange"><code>onformchange</code></dfn> <td> <code title="event-formchange">formchange</code> <tr><td><dfn id="handler-onforminput" title="handler-onforminput"><code>onforminput</code></dfn> <td> <code title="event-forminput">forminput</code> <tr><td><dfn id="handler-oninput" title="handler-oninput"><code>oninput</code></dfn> <td> <code title="event-input">input</code> @@ -45356,32 +45356,32 @@ <tr><td><dfn id="handler-onkeydown" title="handler-onkeydown"><code>onkeydown</code></dfn> <td> <code title="event-keydown">keydown</code> <!-- widely used --> <tr><td><dfn id="handler-onkeypress" title="handler-onkeypress"><code>onkeypress</code></dfn> <td> <code title="event-keypress">keypress</code> <!-- widely used --> <tr><td><dfn id="handler-onkeyup" title="handler-onkeyup"><code>onkeyup</code></dfn> <td> <code title="event-keyup">keyup</code> <!-- widely used --> - <tr><td><dfn id="handler-onloadeddata" title="handler-onloadeddata"><code>onloadeddata</code></dfn> <td> <code title="event-loadeddata"><a href="#event-loadeddata">loadeddata</a></code> - <tr><td><dfn id="handler-onloadedmetadata" title="handler-onloadedmetadata"><code>onloadedmetadata</code></dfn> <td> <code title="event-loadedmetadata"><a href="#event-loadedmetadata">loadedmetadata</a></code> - <tr><td><dfn id="handler-onloadstart" title="handler-onloadstart"><code>onloadstart</code></dfn> <td> <code title="event-loadstart"><a href="#event-loadstart">loadstart</a></code> + <tr><td><dfn id="handler-onloadeddata" title="handler-onloadeddata"><code>onloadeddata</code></dfn> <td> <code title="event-loadeddata">loadeddata</code> + <tr><td><dfn id="handler-onloadedmetadata" title="handler-onloadedmetadata"><code>onloadedmetadata</code></dfn> <td> <code title="event-loadedmetadata">loadedmetadata</code> + <tr><td><dfn id="handler-onloadstart" title="handler-onloadstart"><code>onloadstart</code></dfn> <td> <code title="event-loadstart">loadstart</code> <tr><td><dfn id="handler-onmousedown" title="handler-onmousedown"><code>onmousedown</code></dfn> <td> <code title="event-mousedown">mousedown</code> <!-- widely used --> <tr><td><dfn id="handler-onmousemove" title="handler-onmousemove"><code>onmousemove</code></dfn> <td> <code title="event-mousemove">mousemove</code> <!-- widely used --> <tr><td><dfn id="handler-onmouseout" title="handler-onmouseout"><code>onmouseout</code></dfn> <td> <code title="event-mouseout">mouseout</code> <!-- widely used --> <tr><td><dfn id="handler-onmouseover" title="handler-onmouseover"><code>onmouseover</code></dfn> <td> <code title="event-mouseover">mouseover</code> <!-- widely used --> <tr><td><dfn id="handler-onmouseup" title="handler-onmouseup"><code>onmouseup</code></dfn> <td> <code title="event-mouseup">mouseup</code> <!-- widely used --> <tr><td><dfn id="handler-onmousewheel" title="handler-onmousewheel"><code>onmousewheel</code></dfn> <td> <code title="event-mousewheel">mousewheel</code> <!-- widely used --> - <tr><td><dfn id="handler-onpause" title="handler-onpause"><code>onpause</code></dfn> <td> <code title="event-pause"><a href="#event-pause">pause</a></code> - <tr><td><dfn id="handler-onplay" title="handler-onplay"><code>onplay</code></dfn> <td> <code title="event-play"><a href="#event-play">play</a></code> - <tr><td><dfn id="handler-onplaying" title="handler-onplaying"><code>onplaying</code></dfn> <td> <code title="event-playing"><a href="#event-playing">playing</a></code> - <tr><td><dfn id="handler-onprogress" title="handler-onprogress"><code>onprogress</code></dfn> <td> <code title="event-progress"><a href="#event-progress">progress</a></code> - <tr><td><dfn id="handler-onratechange" title="handler-onratechange"><code>onratechange</code></dfn> <td> <code title="event-ratechange"><a href="#event-ratechange">ratechange</a></code> + <tr><td><dfn id="handler-onpause" title="handler-onpause"><code>onpause</code></dfn> <td> <code title="event-pause">pause</code> + <tr><td><dfn id="handler-onplay" title="handler-onplay"><code>onplay</code></dfn> <td> <code title="event-play">play</code> + <tr><td><dfn id="handler-onplaying" title="handler-onplaying"><code>onplaying</code></dfn> <td> <code title="event-playing">playing</code> + <tr><td><dfn id="handler-onprogress" title="handler-onprogress"><code>onprogress</code></dfn> <td> <code title="event-progress">progress</code> + <tr><td><dfn id="handler-onratechange" title="handler-onratechange"><code>onratechange</code></dfn> <td> <code title="event-ratechange">ratechange</code> <tr><td><dfn id="handler-onreadystatechange" title="handler-onreadystatechange"><code>onreadystatechange</code></dfn> <td> <code title="event-readystatechange">readystatechange</code> <tr><td><dfn id="handler-onscroll" title="handler-onscroll"><code>onscroll</code></dfn> <td> <code title="event-scroll">scroll</code> <!-- widely used --> <!-- [CSSOM] --> - <tr><td><dfn id="handler-onseeked" title="handler-onseeked"><code>onseeked</code></dfn> <td> <code title="event-seeked"><a href="#event-seeked">seeked</a></code> - <tr><td><dfn id="handler-onseeking" title="handler-onseeking"><code>onseeking</code></dfn> <td> <code title="event-seeking"><a href="#event-seeking">seeking</a></code> + <tr><td><dfn id="handler-onseeked" title="handler-onseeked"><code>onseeked</code></dfn> <td> <code title="event-seeked">seeked</code> + <tr><td><dfn id="handler-onseeking" title="handler-onseeking"><code>onseeking</code></dfn> <td> <code title="event-seeking">seeking</code> <tr><td><dfn id="handler-onselect" title="handler-onselect"><code>onselect</code></dfn> <td> <code title="event-select">select</code> <!-- widely used --> <!-- [CSSOM] --> <tr><td><dfn id="handler-onshow" title="handler-onshow"><code>onshow</code></dfn> <td> <code title="event-show">show</code> - <tr><td><dfn id="handler-onstalled" title="handler-onstalled"><code>onstalled</code></dfn> <td> <code title="event-stalled"><a href="#event-stalled">stalled</a></code> + <tr><td><dfn id="handler-onstalled" title="handler-onstalled"><code>onstalled</code></dfn> <td> <code title="event-stalled">stalled</code> <tr><td><dfn id="handler-onsubmit" title="handler-onsubmit"><code>onsubmit</code></dfn> <td> <code title="event-submit">submit</code> <!-- widely used --> - <tr><td><dfn id="handler-onsuspend" title="handler-onsuspend"><code>onsuspend</code></dfn> <td> <code title="event-suspend"><a href="#event-suspend">suspend</a></code> - <tr><td><dfn id="handler-ontimeupdate" title="handler-ontimeupdate"><code>ontimeupdate</code></dfn> <td> <code title="event-timeupdate"><a href="#event-timeupdate">timeupdate</a></code> - <tr><td><dfn id="handler-onvolumechange" title="handler-onvolumechange"><code>onvolumechange</code></dfn> <td> <code title="event-volumechange"><a href="#event-volumechange">volumechange</a></code> - <tr><td><dfn id="handler-onwaiting" title="handler-onwaiting"><code>onwaiting</code></dfn> <td> <code title="event-waiting"><a href="#event-waiting">waiting</a></code> + <tr><td><dfn id="handler-onsuspend" title="handler-onsuspend"><code>onsuspend</code></dfn> <td> <code title="event-suspend">suspend</code> + <tr><td><dfn id="handler-ontimeupdate" title="handler-ontimeupdate"><code>ontimeupdate</code></dfn> <td> <code title="event-timeupdate">timeupdate</code> + <tr><td><dfn id="handler-onvolumechange" title="handler-onvolumechange"><code>onvolumechange</code></dfn> <td> <code title="event-volumechange">volumechange</code> + <tr><td><dfn id="handler-onwaiting" title="handler-onwaiting"><code>onwaiting</code></dfn> <td> <code title="event-waiting">waiting</code> <!-- not supported, use dnd: --> <!--<tr><td><dfn title="handler-onbeforecopy"><code>onbeforecopy</code></dfn> <td> <code title="event-beforecopy">beforecopy</code>--> <!-- widely used --> @@ -45398,9 +45398,9 @@ <table><thead><tr><th><a href="#event-handler-attributes-0" title="event handler attributes">event handler attribute</a> <th><a href="#event-handler-event-type">Event handler event type</a> <tbody><tr><td><dfn id="handler-onblur" title="handler-onblur"><code>onblur</code></dfn> <td> <code title="event-blur">blur</code> <!-- widely used --> - <tr><td><dfn id="handler-onerror" title="handler-onerror"><code>onerror</code></dfn> <td> <code title="event-error"><a href="#event-error">error</a></code> + <tr><td><dfn id="handler-onerror" title="handler-onerror"><code>onerror</code></dfn> <td> <code title="event-error">error</code> <tr><td><dfn id="handler-onfocus" title="handler-onfocus"><code>onfocus</code></dfn> <td> <code title="event-focus">focus</code> <!-- widely used --> - <tr><td><dfn id="handler-onload" title="handler-onload"><code>onload</code></dfn> <td> <code title="event-load"><a href="#event-load">load</a></code> + <tr><td><dfn id="handler-onload" title="handler-onload"><code>onload</code></dfn> <td> <code title="event-load">load</code> </table><hr><p>The following are the <a href="#event-handler-attributes-0">event handler attributes</a> (and their corresponding <a href="#event-handler-event-type" title="event handler event type">event handler event types</a>) that must be supported by @@ -45414,10 +45414,10 @@ <tr><td><dfn id="handler-window-onbeforeprint" title="handler-window-onbeforeprint"><code>onbeforeprint</code></dfn> <td> <code title="event-beforeprint">beforeprint</code> <tr><td><dfn id="handler-window-onbeforeunload" title="handler-window-onbeforeunload"><code>onbeforeunload</code></dfn> <td> <code title="event-beforeunload">beforeunload</code> <tr><td><dfn id="handler-window-onblur" title="handler-window-onblur"><code>onblur</code></dfn> <td> <code title="event-blur">blur</code> - <tr><td><dfn id="handler-window-onerror" title="handler-window-onerror"><code>onerror</code></dfn> <td> <code title="event-error"><a href="#event-error">error</a></code> + <tr><td><dfn id="handler-window-onerror" title="handler-window-onerror"><code>onerror</code></dfn> <td> <code title="event-error">error</code> <tr><td><dfn id="handler-window-onfocus" title="handler-window-onfocus"><code>onfocus</code></dfn> <td> <code title="event-focus">focus</code> <tr><td><dfn id="handler-window-onhashchange" title="handler-window-onhashchange"><code>onhashchange</code></dfn> <td> <code title="event-hashchange">hashchange</code> <!-- new --> - <tr><td><dfn id="handler-window-onload" title="handler-window-onload"><code>onload</code></dfn> <td> <code title="event-load"><a href="#event-load">load</a></code> <!-- widely used --> + <tr><td><dfn id="handler-window-onload" title="handler-window-onload"><code>onload</code></dfn> <td> <code title="event-load">load</code> <!-- widely used --> <tr><td><dfn id="handler-window-onmessage" title="handler-window-onmessage"><code>onmessage</code></dfn> <td> <code title="event-message"><a href="#event-message">message</a></code> <!-- new for postMessage --> <tr><td><dfn id="handler-window-onoffline" title="handler-window-onoffline"><code>onoffline</code></dfn> <td> <code title="event-offline"><a href="#event-offline">offline</a></code> <!-- new --> <tr><td><dfn id="handler-window-ononline" title="handler-window-ononline"><code>ononline</code></dfn> <td> <code title="event-online"><a href="#event-online">online</a></code> <!-- new --> @@ -45484,7 +45484,7 @@ <p>When an event is dispatched at a DOM node in a <code>Document</code> in a <a href="#browsing-context">browsing context</a>, if the - event is not a <code title="event-load"><a href="#event-load">load</a></code> event, the user + event is not a <code title="event-load">load</code> event, the user agent must also dispatch the event to the <code><a href="#window">Window</a></code>, as follows:</p> @@ -48703,7 +48703,7 @@ a <a href="#pending-state-object">pending state object</a>, the previous one is discarded.)</p> - <p class="note">The event will then be fired just after the <code title="event-load"><a href="#event-load">load</a></code> event.</dd> + <p class="note">The event will then be fired just after the <code title="event-load">load</code> event.</dd> </dl></li> @@ -49400,7 +49400,7 @@ section, keep them in sync --> <p>When no more bytes are available, an EOF character is implied, - which eventually causes a <code title="event-load"><a href="#event-load">load</a></code> event + which eventually causes a <code title="event-load">load</code> event to be fired.</p> <p>After creating the <code>Document</code> object, but potentially @@ -49498,7 +49498,7 @@ sections; keep them all in sync --> <p>When no more character are available, an EOF character is - implied, which eventually causes a <code title="event-load"><a href="#event-load">load</a></code> event to be fired.</p> + implied, which eventually causes a <code title="event-load">load</code> event to be fired.</p> <p>After creating the <code>Document</code> object, but potentially before the page has finished parsing, the user agent must @@ -61861,7 +61861,7 @@ <li>If the <code>Document</code> is in a <a href="#browsing-context">browsing context</a>, then <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a - simple event</a> called <code title="event-load"><a href="#event-load">load</a></code> at + simple event</a> called <code title="event-load">load</code> at the <code>Document</code>'s <code><a href="#window">Window</a></code> object, but with its <code title="dom-event-target">target</code> set to the <code>Document</code> object (and the <code title="dom-event-currentTarget">currentTarget</code> set to the @@ -67810,12 +67810,12 @@ value. If the attribute is removed, the <a href="#browsing-context-name">browsing context name</a> must be set to the empty string.</p> - <p>When content loads in a <code><a href="#frame">frame</a></code>, after any <code title="event-load"><a href="#event-load">load</a></code> events are fired within the content + <p>When content loads in a <code><a href="#frame">frame</a></code>, after any <code title="event-load">load</code> events are fired within the content itself, the user agent must <a href="#fire-a-simple-event">fire a simple event</a> called - <code title="event-load"><a href="#event-load">load</a></code> at the <code><a href="#frame">frame</a></code> + <code title="event-load">load</code> at the <code><a href="#frame">frame</a></code> element. When content fails to load (e.g. due to a network error), then the user agent must <a href="#fire-a-simple-event">fire a simple event</a> called - <code title="event-error"><a href="#event-error">error</a></code> at the element instead.</p> + <code title="event-error">error</code> at the element instead.</p> <p>When there is an <a href="#active-parser">active parser</a> in the <code><a href="#frame">frame</a></code>, and when anything in the <code><a href="#frame">frame</a></code> is @@ -68975,7 +68975,7 @@ <thead><tr><th> Event <th> Description <tbody><tr><td class="XXX" colspan="2"> ... - <tr><td> <code title="event-load"><a href="#event-load">load</a></code> + <tr><td> <code title="event-load">load</code> <td> The element or page has finished loading <tr><td class="XXX" colspan="2"> ... </table><h2 class="no-num" id="references">References</h2><p class="XXX annotation"><b>Status: </b><i>First draft</i></p><!--REFS--><p>All references are normative unless marked "Non-normative".<dl><dt id="refsABNF">[ABNF]</dt>
Received on Thursday, 24 September 2009 09:57:19 UTC