- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Fri, 10 Jul 2009 16:15:29 +1200
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>
Received on Thursday, 9 July 2009 21:15:29 UTC