Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) canPlayType('application/octet-stream') should always retu…
…rn ''.

git-svn-id: http://svn.whatwg.org/webapps@5407 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 31, 2010
1 parent 4431eb0 commit 6e457dc
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 49 deletions.
33 changes: 18 additions & 15 deletions complete.html
Expand Up @@ -24502,16 +24502,19 @@ <h5 id=mime-types><span class=secno>4.8.10.3 </span>MIME types</h5>
not support, for example because it doesn't recognize the container
type, or it doesn't support the listed codecs.</p>

<p>The <a href=#mime-type>MIME type</a> "<code title="">application/octet-stream</code>" with no parameters is
never <a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user agent knows it cannot
render</a>. User agents must treat that type as equivalent to the
lack of any explicit <a href=#content-type title=Content-Type>Content-Type
metadata</a> when it is used to label a potential <a href=#media-resource>media
<p>The <a href=#mime-type>MIME type</a>
"<code>application/octet-stream</code>" with no parameters is never
<a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user agent knows it cannot render</a>. User
agents must treat that type as equivalent to the lack of any
explicit <a href=#content-type title=Content-Type>Content-Type metadata</a>
when it is used to label a potential <a href=#media-resource>media
resource</a>.</p>

<p class=note>In the absence of a <!-- pretty crazy -->
specification to the contrary, the <a href=#mime-type>MIME type</a> "<code title="">application/octet-stream</code>" when used <em>with</em>
parameters, e.g. "<code title="">application/octet-stream;codecs=theora</code>", <em>is</em>
specification to the contrary, the <a href=#mime-type>MIME type</a>
"<code>application/octet-stream</code>" when used <em>with</em>
parameters, e.g.
"<code>application/octet-stream;codecs=theora</code>", <em>is</em>
<a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user agent knows it cannot render</a>.</p>

<dl class=domintro><dt><var title="">media</var> . <code title=dom-navigator-canPlayType><a href=#dom-navigator-canplaytype>canPlayType</a></code>(<var title="">type</var>)</dt>
Expand All @@ -24528,14 +24531,14 @@ <h5 id=mime-types><span class=secno>4.8.10.3 </span>MIME types</h5>

<p>The <dfn id=dom-navigator-canplaytype title=dom-navigator-canPlayType><code>canPlayType(<var title="">type</var>)</code></dfn> method must return the empty
string if <var title="">type</var> is <a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user
agent knows it cannot render</a>; it must return "<code title="">probably</code>" if the user agent is confident that the
agent knows it cannot render</a> or is the type
"<code>application/octet-stream</code>"; it must return "<code title="">probably</code>" if the user agent is confident that the
type represents a <a href=#media-resource>media resource</a> that it can render if
used in with this <code><a href=#audio>audio</a></code> or <code><a href=#video>video</a></code> element;
and it must return "<code title="">maybe</code>"
otherwise. Implementors are encouraged to return "<code title="">maybe</code>" unless the type can be confidently
established as being supported or not. Generally, a user agent
should never return "<code title="">probably</code>" if the type
doesn't have a <code title="">codecs</code> parameter.</p>
and it must return "<code title="">maybe</code>" otherwise.
Implementors are encouraged to return "<code title="">maybe</code>"
unless the type can be confidently established as being supported or
not. Generally, a user agent should never return "<code title="">probably</code>" if the type doesn't have a <code title="">codecs</code> parameter.</p>

</div>

Expand Down Expand Up @@ -46178,8 +46181,8 @@ <h5 id=form-submission-algorithm><span class=secno>4.10.21.3 </span>Form submiss
there are no <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>,
then append an entry in the <var title="">form data set</var>
with the <var title="">name</var> as the name, the empty string
as the value, and <code title="">application/octet-stream</code>
as the type.</li>
as the value, and <code>application/octet-stream</code> as the
type.</li>
<!-- https://bugzilla.mozilla.org/show_bug.cgi?id=529859 -->

<li><p>Otherwise, if the <var title="">field</var> element is an
Expand Down
33 changes: 18 additions & 15 deletions index
Expand Up @@ -24427,16 +24427,19 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
not support, for example because it doesn't recognize the container
type, or it doesn't support the listed codecs.</p>

<p>The <a href=#mime-type>MIME type</a> "<code title="">application/octet-stream</code>" with no parameters is
never <a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user agent knows it cannot
render</a>. User agents must treat that type as equivalent to the
lack of any explicit <a href=#content-type title=Content-Type>Content-Type
metadata</a> when it is used to label a potential <a href=#media-resource>media
<p>The <a href=#mime-type>MIME type</a>
"<code>application/octet-stream</code>" with no parameters is never
<a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user agent knows it cannot render</a>. User
agents must treat that type as equivalent to the lack of any
explicit <a href=#content-type title=Content-Type>Content-Type metadata</a>
when it is used to label a potential <a href=#media-resource>media
resource</a>.</p>

<p class=note>In the absence of a <!-- pretty crazy -->
specification to the contrary, the <a href=#mime-type>MIME type</a> "<code title="">application/octet-stream</code>" when used <em>with</em>
parameters, e.g. "<code title="">application/octet-stream;codecs=theora</code>", <em>is</em>
specification to the contrary, the <a href=#mime-type>MIME type</a>
"<code>application/octet-stream</code>" when used <em>with</em>
parameters, e.g.
"<code>application/octet-stream;codecs=theora</code>", <em>is</em>
<a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user agent knows it cannot render</a>.</p>

<dl class=domintro><dt><var title="">media</var> . <code title=dom-navigator-canPlayType><a href=#dom-navigator-canplaytype>canPlayType</a></code>(<var title="">type</var>)</dt>
Expand All @@ -24453,14 +24456,14 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael

<p>The <dfn id=dom-navigator-canplaytype title=dom-navigator-canPlayType><code>canPlayType(<var title="">type</var>)</code></dfn> method must return the empty
string if <var title="">type</var> is <a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user
agent knows it cannot render</a>; it must return "<code title="">probably</code>" if the user agent is confident that the
agent knows it cannot render</a> or is the type
"<code>application/octet-stream</code>"; it must return "<code title="">probably</code>" if the user agent is confident that the
type represents a <a href=#media-resource>media resource</a> that it can render if
used in with this <code><a href=#audio>audio</a></code> or <code><a href=#video>video</a></code> element;
and it must return "<code title="">maybe</code>"
otherwise. Implementors are encouraged to return "<code title="">maybe</code>" unless the type can be confidently
established as being supported or not. Generally, a user agent
should never return "<code title="">probably</code>" if the type
doesn't have a <code title="">codecs</code> parameter.</p>
and it must return "<code title="">maybe</code>" otherwise.
Implementors are encouraged to return "<code title="">maybe</code>"
unless the type can be confidently established as being supported or
not. Generally, a user agent should never return "<code title="">probably</code>" if the type doesn't have a <code title="">codecs</code> parameter.</p>

</div>

Expand Down Expand Up @@ -46103,8 +46106,8 @@ fur
there are no <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>,
then append an entry in the <var title="">form data set</var>
with the <var title="">name</var> as the name, the empty string
as the value, and <code title="">application/octet-stream</code>
as the type.</li>
as the value, and <code>application/octet-stream</code> as the
type.</li>
<!-- https://bugzilla.mozilla.org/show_bug.cgi?id=529859 -->

<li><p>Otherwise, if the <var title="">field</var> element is an
Expand Down
39 changes: 20 additions & 19 deletions source
Expand Up @@ -26268,19 +26268,19 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
not support, for example because it doesn't recognize the container
type, or it doesn't support the listed codecs.</p>

<p>The <span>MIME type</span> "<code
title="">application/octet-stream</code>" with no parameters is
never <span>a type that the user agent knows it cannot
render</span>. User agents must treat that type as equivalent to the
lack of any explicit <span title="Content-Type">Content-Type
metadata</span> when it is used to label a potential <span>media
<p>The <span>MIME type</span>
"<code>application/octet-stream</code>" with no parameters is never
<span>a type that the user agent knows it cannot render</span>. User
agents must treat that type as equivalent to the lack of any
explicit <span title="Content-Type">Content-Type metadata</span>
when it is used to label a potential <span>media
resource</span>.</p>

<p class="note">In the absence of a <!-- pretty crazy -->
specification to the contrary, the <span>MIME type</span> "<code
title="">application/octet-stream</code>" when used <em>with</em>
parameters, e.g. "<code
title="">application/octet-stream;codecs=theora</code>", <em>is</em>
specification to the contrary, the <span>MIME type</span>
"<code>application/octet-stream</code>" when used <em>with</em>
parameters, e.g.
"<code>application/octet-stream;codecs=theora</code>", <em>is</em>
<span>a type that the user agent knows it cannot render</span>.</p>

<dl class="domintro">
Expand All @@ -26302,16 +26302,17 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
<p>The <dfn title="dom-navigator-canPlayType"><code>canPlayType(<var
title="">type</var>)</code></dfn> method must return the empty
string if <var title="">type</var> is <span>a type that the user
agent knows it cannot render</span>; it must return "<code
agent knows it cannot render</span> or is the type
"<code>application/octet-stream</code>"; it must return "<code
title="">probably</code>" if the user agent is confident that the
type represents a <span>media resource</span> that it can render if
used in with this <code>audio</code> or <code>video</code> element;
and it must return "<code title="">maybe</code>"
otherwise. Implementors are encouraged to return "<code
title="">maybe</code>" unless the type can be confidently
established as being supported or not. Generally, a user agent
should never return "<code title="">probably</code>" if the type
doesn't have a <code title="">codecs</code> parameter.</p>
and it must return "<code title="">maybe</code>" otherwise.
Implementors are encouraged to return "<code title="">maybe</code>"
unless the type can be confidently established as being supported or
not. Generally, a user agent should never return "<code
title="">probably</code>" if the type doesn't have a <code
title="">codecs</code> parameter.</p>

</div>

Expand Down Expand Up @@ -51806,8 +51807,8 @@ fur
title="concept-input-type-file-selected">selected files</span>,
then append an entry in the <var title="">form data set</var>
with the <var title="">name</var> as the name, the empty string
as the value, and <code title="">application/octet-stream</code>
as the type.</p></li>
as the value, and <code>application/octet-stream</code> as the
type.</p></li>
<!-- https://bugzilla.mozilla.org/show_bug.cgi?id=529859 -->

<li><p>Otherwise, if the <var title="">field</var> element is an
Expand Down

0 comments on commit 6e457dc

Please sign in to comment.