Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 92e67b5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
13 changes: 8 additions & 5 deletions complete.html
Expand Up @@ -24281,20 +24281,20 @@ <h4 id=the-object-element><span class=secno>4.7.4 </span>The <dfn><code>object</

<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
Expand Down Expand Up @@ -24323,6 +24323,9 @@ <h4 id=the-object-element><span class=secno>4.7.4 </span>The <dfn><code>object</
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
Expand Down
13 changes: 8 additions & 5 deletions index
Expand Up @@ -24281,20 +24281,20 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>

<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
Expand Down Expand Up @@ -24323,6 +24323,9 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
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
Expand Down
13 changes: 8 additions & 5 deletions source
Expand Up @@ -25655,12 +25655,10 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>

<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>
Expand All @@ -25674,7 +25672,9 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
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
Expand Down Expand Up @@ -25705,6 +25705,9 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
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
Expand Down

0 comments on commit 92e67b5

Please sign in to comment.