On Wed, Jul 15, 2009 at 12:56 AM, Philip Jägenstedt <span dir="ltr"><<a href="mailto:philipj@opera.com">philipj@opera.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
While implementing canPlayType I've found that Firefox/Safari/Chrome (and now Opera) all have different error handling in parsing the MIME types. RFC 2045[1] gives the BNF form, but it appears that no browser gives much weight to this.</blockquote>
<div><br>In Firefox I just reused our existing MIME type parser. I'm not sure how tightly that parser is constrained by Web compatibility quirks issues.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

audio/x-wav codecs: the same as audio/x-unknown-type (i.e. "no" for Firefox)</blockquote><div><br>Yes, that seems like a bug.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
audio/x-wav; codecs=: same as audio/x-wav (unless we want this to mean "no codecs", in which case "no" would be more appropriate)</blockquote><div><br>I interpret this as "no codecs". In that case, "probably" is correct, since we support every codec in the list.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">audio/x-wav; codecs=,: same as audio/x-wav (i.e. ignore broken codecs parameter)</blockquote>
<div><br>I interpret this as two codecs, both whose name is the empty string. We don't support that codec.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Has there been any work done on defining error handling for Content-Type parsing or the like?</blockquote><div><br>That's a very good question, but I don't know the answer.<br><br></div></div>Rob<br>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>