W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2008

[whatwg] Scripted <video> query proposal

From: Tim Starling <tstarling@wikimedia.org>
Date: Sat, 23 Aug 2008 12:17:11 +1000
Message-ID: <48AF7327.6040300@wikimedia.org>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:04 UTC