Navigation Menu

Skip to content

Commit

Permalink
[] (0) <embed>: it turns out that unknown types cause the UAs to defe…
Browse files Browse the repository at this point in the history
…r to the extension. what a mess.

git-svn-id: http://svn.whatwg.org/webapps@2425 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 20, 2008
1 parent 59f3da3 commit d895c5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions index
Expand Up @@ -15854,8 +15854,9 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<p>The <dfn id=concept-embed-type title=concept-embed-type>type of the content</dfn>
being embedded is defined as follows:</p>

<ol><li><p>If the element has a <code title=attr-embed-type><a href=#attr-embed-type>type</a></code> attribute, then the value of
the <code title=attr-embed-type><a href=#attr-embed-type>type</a></code> attribute is the
<ol><li><p>If the element has a <code title=attr-embed-type><a href=#attr-embed-type>type</a></code> attribute, and that attribute's
value is a type that a <a href=#plugin>plugin</a> supports, then the value
of the <code title=attr-embed-type><a href=#attr-embed-type>type</a></code> attribute is the
<span>content's type</span>.</li>

<li>
Expand Down Expand Up @@ -15883,6 +15884,8 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<li><p>Otherwise, the content has no type and there can be no
appropriate <a href=#plugin>plugin</a> for it.</li>

<!-- This algorithm is a monument to bad design. Go legacy! -->

</ol><p>Whether the resource is fetched successfully or not (e.g. whether
the response code was a 2xx code or equivalent) must be ignored when
determining the resource's type and when handing the resource to the
Expand Down
7 changes: 5 additions & 2 deletions source
Expand Up @@ -16946,8 +16946,9 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<ol>

<li><p>If the element has a <code
title="attr-embed-type">type</code> attribute, then the value of
the <code title="attr-embed-type">type</code> attribute is the
title="attr-embed-type">type</code> attribute, and that attribute's
value is a type that a <span>plugin</span> supports, then the value
of the <code title="attr-embed-type">type</code> attribute is the
<span>content's type</span>.</p></li>

<li>
Expand Down Expand Up @@ -16977,6 +16978,8 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<li><p>Otherwise, the content has no type and there can be no
appropriate <span>plugin</span> for it.</p></li>

<!-- This algorithm is a monument to bad design. Go legacy! -->

</ol>

<p>Whether the resource is fetched successfully or not (e.g. whether
Expand Down

0 comments on commit d895c5a

Please sign in to comment.