Re: [webrtc-pc] Comparison rules for RTCRtpCodec needs clarification on how mimeType is compared (#2971)

RTCRtpCodec's [mimeType](https://w3c.github.io/webrtc-pc/#dom-rtcrtpcodec-mimetype) must be:
- _"listed in [[IANA-RTP-2](https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-2)]."_
  - which clearly states **_"Both type and subtype names are case-insensitive as defined in RFC4288."_**
  - it further says its _"registration procedures ... can be found in [[RFC4855](https://www.rfc-editor.org/rfc/rfc4855.html#section-1)]"_
     - which says _"[RFC 4288](https://www.rfc-editor.org/rfc/rfc4288) [[1](https://www.rfc-editor.org/rfc/rfc4855.html#ref-1)] defines media type specification and registration
   procedures that use the Internet Assigned Numbers Authority (IANA) as
   a central registry."_
       - which is _"Obsoleted by: [6838](https://www.rfc-editor.org/rfc/rfc6838)"_, where [section 4.2](https://www.rfc-editor.org/rfc/rfc6838#section-4.2) says
         - ```
           Type and subtype names MUST conform to the following ABNF:

           type-name = restricted-name
           subtype-name = restricted-name

           restricted-name = restricted-name-first *126restricted-name-chars
           restricted-name-first  = ALPHA / DIGIT
           restricted-name-chars  = ALPHA / DIGIT / "!" / "#" /
                                    "$" / "&" / "-" / "^" / "_""_
           ```
           - where `ALPHA` is defined in [core rules](https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1) as
             ````
             ALPHA          =  %x41-5A / %x61-7A   ; A-Z / a-z
             ````
This seems clear enough to me: case insensitive, and no UTF. Can we close?

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2971#issuecomment-2125530299 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 22 May 2024 18:51:17 UTC