Skip to content

Wrong return value for 'canPlayType' #1

@mycroes

Description

@mycroes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions