Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong return value for 'canPlayType' #1

Open
mycroes opened this issue May 16, 2010 · 1 comment
Open

Wrong return value for 'canPlayType' #1

mycroes opened this issue May 16, 2010 · 1 comment

Comments

@mycroes
Copy link

mycroes commented May 16, 2010

the canPlayType function returns "no" if the expected result is that the src file can not be played. However, the string "no" evaluates to the boolean true, and thus this has been changed in HTML5 so that the empty string is returned instead. Also, it would be nice if these were defined as constants somewhere in the code, which would make any future changes easier...

@trieloff
Copy link
Owner

Good point, I missed that change, but it makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants