- From: poot <cvsmail@w3.org>
- Date: Fri, 10 Jul 2009 13:37:15 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: canPlayType() should return something that ToBoolean()s to false in the negative case, for sanity's sake. (whatwg r3384) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2514&r2=1.2515&f=h http://html5.org/tools/web-apps-tracker?from=3383&to=3384 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2514 retrieving revision 1.2515 diff -u -d -r1.2514 -r1.2515 --- Overview.html 10 Jul 2009 00:35:48 -0000 1.2514 +++ Overview.html 10 Jul 2009 04:36:53 -0000 1.2515 @@ -17493,25 +17493,24 @@ <dd> - <p>Returns "no", "maybe", or "probably" based on how confident the - user agent is that it can play media resources of the given - type.</p> + <p>Returns the empty string (a negative response), "maybe", or + "probably" based on how confident the user agent is that it can + play media resources of the given type.</p> </dd> </dl><div class="impl"> - <p>The <dfn id="dom-navigator-canplaytype" title="dom-navigator-canPlayType"><code>canPlayType(<var title="">type</var>)</code></dfn> method must return the string - "<code title="">no</code>" 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 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> + <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 + 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> </div><div class="example"> @@ -17531,7 +17530,7 @@ // but we have a plugin // so use plugin instead videoElement = document.createElement("embed"); - } else if (support == "no") { + } else if (support == "") { // no support from browser and no plugin // do nothing videoElement = null;
Received on Friday, 10 July 2009 04:37:56 UTC