[Bug 20798] keySystem strings should be compared case-sensitively

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20798

David Dorwin <ddorwin@google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #4 from David Dorwin <ddorwin@google.com> ---
https://bugzilla.mozilla.org/show_bug.cgi?id=800600 notes that the spec doesn't
say whether canPlayType() is case-sensitive and that browsers differ in
case-sensitivity.

Presumably, browsers would use the same behavior for the |type| parameter of
isTypeSupported(). For those that allow case-insensitive |type|, it might be
odd that the other parameter (|keySystem|) does not.

However, for simplicity and because we have the opportunity to establish
consistent behavior, I think it's fine to do an exact string match, which is
also consisten with the direction of bug 16540. We can always change to case
insensitive later but never the other way.

I think we should include an informative note that these should be lowercase
strings. If all applications are implementations use lowercase (whatever that
means for a given character), we should not have interoperability issues.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 8 May 2013 20:34:59 UTC