[whatwg] Serving up Theora <video> in the real world

Robert O'Callahan robert at ocallahan.org
Thu Jul 9 21:15:29 PDT 2009


On Fri, Jul 10, 2009 at 3:04 PM, Maciej Stachowiak <mjs at apple.com> wrote:

> Robert's code is a bit buggy; canPlayType returns a string, not a boolean,
> so it will always appear to say yes.


You're being polite, my code was not "a bit buggy", it was completely
broken.

I've actually made this mistake several times while writing tests recently,
so I should have known better.

I actually anticipated this problem, and argued strenuously to break
canPlayType into two boolean functions, "canPlayType" and "cannotPlayType",
but I lost. Hopefully most Web authors are smarter than I am.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090710/3abb616d/attachment-0001.htm>


More information about the whatwg mailing list