Permalink
Browse files

[giow] (3) Clean up how <object> fires load events. (This is not comp…

…lete. See bug 24214 for more that needs doing here.)

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8377 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jan 6, 2014
1 parent da64092 commit 92e67b53a5530abf6260ebd1b60e2cc8ac3da6fc
Showing with 24 additions and 15 deletions.
  1. +8 −5 complete.html
  2. +8 −5 index
  3. +8 −5 source

<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
<!--CLEANUP-->
<p>Abort these steps. 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> named <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 source</a>.</p>

</li>

</ol></li>

<li><p>If the <code title=attr-object-data><a href=#attr-object-data>data</a></code> attribute is absent but the <code title=attr-object-type><a href=#attr-object-type>type</a></code> attribute is present, and the user agent can find a
<a href=#plugin>plugin</a> suitable according to the value of the <code title=attr-object-type><a href=#attr-object-type>type</a></code> attribute, and either <a href=#sandboxPluginObject>plugins
aren't being sandboxed</a> or the <a href=#plugin>plugin</a> can be <a href=#concept-plugin-secure title=concept-plugin-secure>secured</a>, then that <a href=#plugin>plugin</a> <a href=#object-plugin>should be used</a>. If these conditions cannot be met, or if the
<a href=#plugin>plugin</a> reports an error, jump to the step below labeled <i>fallback</i>.</li>
<a href=#plugin>plugin</a> reports an error, jump to the step below labeled <i>fallback</i>. Otherwise
abort these steps; once the plugin is completely loaded, <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire
a simple event</a> named <code title=event-load>load</code> at the element.</li>

<li><p><i>Fallback</i>: The <code><a href=#the-object-element>object</a></code> element <a href=#represents>represents</a> the element's
children, ignoring any leading <code><a href=#the-param-element>param</a></code> element children. This is the element's
targeting multiple user agents with different capabilities, with the user agent picking the first
one it supports.</p>

<p>The <a href=#task-source>task source</a> for the <a href=#concept-task title=concept-task>tasks</a> mentioned in this
section is the <a href=#dom-manipulation-task-source>DOM manipulation task source</a>.</p>

<p>Whenever the <code title=attr-object-name><a href=#attr-object-name>name</a></code> attribute is set, if the
<code><a href=#the-object-element>object</a></code> element has a nested <a href=#browsing-context>browsing context</a>, its <a href=#browsing-context-name title="browsing
context name">name</a> must be changed to the new value. If the attribute is removed, if the
13 index

<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
<!--CLEANUP-->
<p>Abort these steps. 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> named <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 source</a>.</p>

</li>

</ol></li>

<li><p>If the <code title=attr-object-data><a href=#attr-object-data>data</a></code> attribute is absent but the <code title=attr-object-type><a href=#attr-object-type>type</a></code> attribute is present, and the user agent can find a
<a href=#plugin>plugin</a> suitable according to the value of the <code title=attr-object-type><a href=#attr-object-type>type</a></code> attribute, and either <a href=#sandboxPluginObject>plugins
aren't being sandboxed</a> or the <a href=#plugin>plugin</a> can be <a href=#concept-plugin-secure title=concept-plugin-secure>secured</a>, then that <a href=#plugin>plugin</a> <a href=#object-plugin>should be used</a>. If these conditions cannot be met, or if the
<a href=#plugin>plugin</a> reports an error, jump to the step below labeled <i>fallback</i>.</li>
<a href=#plugin>plugin</a> reports an error, jump to the step below labeled <i>fallback</i>. Otherwise
abort these steps; once the plugin is completely loaded, <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire
a simple event</a> named <code title=event-load>load</code> at the element.</li>

<li><p><i>Fallback</i>: The <code><a href=#the-object-element>object</a></code> element <a href=#represents>represents</a> the element's
children, ignoring any leading <code><a href=#the-param-element>param</a></code> element children. This is the element's
targeting multiple user agents with different capabilities, with the user agent picking the first
one it supports.</p>

<p>The <a href=#task-source>task source</a> for the <a href=#concept-task title=concept-task>tasks</a> mentioned in this
section is the <a href=#dom-manipulation-task-source>DOM manipulation task source</a>.</p>

<p>Whenever the <code title=attr-object-name><a href=#attr-object-name>name</a></code> attribute is set, if the
<code><a href=#the-object-element>object</a></code> element has a nested <a href=#browsing-context>browsing context</a>, its <a href=#browsing-context-name title="browsing
context name">name</a> must be changed to the new value. If the attribute is removed, if the
13 source

<li>

<p>Once the resource is completely loaded, <span>queue a task</span> to <span>fire a simple
<!--CLEANUP-->
<p>Abort these steps. Once the resource is completely loaded, <span>queue a task</span> to <span>fire a simple
event</span> named <code data-x="event-load">load</code> at the element.</p>

<p>The <span>task source</span> for this task<!--tasks mentioned in this section--> is the
<span>DOM manipulation task source</span>.</p>

</li>

</ol>
aren't being sandboxed</a> or the <span>plugin</span> can be <span
data-x="concept-plugin-secure">secured</span>, then that <span>plugin</span> <a
href="#object-plugin">should be used</a>. If these conditions cannot be met, or if the
<span>plugin</span> reports an error, jump to the step below labeled <i>fallback</i>.</p></li>
<span>plugin</span> reports an error, jump to the step below labeled <i>fallback</i>. Otherwise
abort these steps; once the plugin is completely loaded, <span>queue a task</span> to <span>fire
a simple event</span> named <code data-x="event-load">load</code> at the element.</p></li>

<li><p><i>Fallback</i>: The <code>object</code> element <span>represents</span> the element's
children, ignoring any leading <code>param</code> element children. This is the element's
targeting multiple user agents with different capabilities, with the user agent picking the first
one it supports.</p>

<p>The <span>task source</span> for the <span data-x="concept-task">tasks</span> mentioned in this
section is the <span>DOM manipulation task source</span>.</p>

<p>Whenever the <code data-x="attr-object-name">name</code> attribute is set, if the
<code>object</code> element has a nested <span>browsing context</span>, its <span data-x="browsing
context name">name</span> must be changed to the new value. If the attribute is removed, if the

0 comments on commit 92e67b5

Please sign in to comment.