[Bug 9662] canPlayType should return enum instead of string

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9662





--- Comment #7 from Axel Dahmen <brille1@hotmail.com>  2010-05-10 02:01:39 ---
(In reply to comment #6)
> (In reply to comment #4)
> > Why? HTML5 is still under development.
> 
> Because it has shipped in 3 browser engines.

I'd call that hard luck. HTML5 isn't final yet. So changes may always be
possible until it's finished.

I regard the necessary changes as being:

* Three enum constants
* Change of one function prototype
* Change of three return values.

I guess the function isn't called internally, because it wouldn't make sense to
use a hypothetical return value for rendering. But if it was, this would be one
or two if condition updates.

All in all, the effort to write this reply is about four times the amount to
update the browser code.

No one is (officially) using the code yet, either.

So I don't see a reason for not amending the specification.




> > AFAIK, HTML5 is not even a TR.
> 
> Perhaps you mean CR?

Yes, sorry for that. I mixed it up with the URL which always uses "TR"... My
mistake.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 10 May 2010 02:01:45 UTC