html5flash icon indicating copy to clipboard operation
html5flash copied to clipboard

Wrong return value for 'canPlayType'

Open mycroes opened this issue 15 years ago • 1 comments

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...

mycroes avatar May 16 '10 12:05 mycroes

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

trieloff avatar May 16 '10 18:05 trieloff