[whatwg] Scripted <video> query proposal

Robert O'Callahan wrote:
> On Fri, Aug 22, 2008 at 1:56 PM, Tim Starling <tstarling at wikimedia.org
> <mailto:tstarling at wikimedia.org>> wrote:
>
>     interface HTMLMediaElement {
>        ...
>        boolean supportsType(in DOMString type);
>        ...
>     }
>
>     The supportsType() method must return false if the user agent is
>     sure it
>     cannot support the given type, and true if the user agent either can
>     support the given type, or cannot determine whether it can support the
>     given type.
>
>
> Wouldn't it be better to return three possible values: "yes", "no" and
> "don't know"?

With this proposal, I'm trying to find a compromise between the opinions
put forward on this list. Personally I'd be happy either way, as long as
the interface gets added in some form.

The yes = maybe definition pre-empts the tendency of user agents to lie
about their capabilities.

-- Tim Starling

Received on Friday, 22 August 2008 19:17:11 UTC