[webrtc-pc] RTCIceCandidate's relayProtocol and url members can be null but not absent (#2947)

jan-ivar has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCIceCandidate's relayProtocol and url members can be null but not absent ==
The nullable readonly attribute [relayProtocol](https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-relayprotocol) says: _"This is only present for local relay candidates."_ which is wrong since readonly attributes are always [present](https://infra.spec.whatwg.org/#map-exists), instead we should clarify when it is `null`.

Similarly, [url](https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-url) says: _"For local candidates of type "[srflx](https://w3c.github.io/webrtc-pc/#dom-rtcicecandidatetype-srflx)" or type "[relay](https://w3c.github.io/webrtc-pc/#dom-rtcicecandidatetype-relay)" this is the URL of the ICE server from which the candidate was obtained."_ — add _"Otherwise, it is null"_.

This seems minor and obvious, so marking it editorial.


Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2947 using your GitHub account


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

Received on Tuesday, 19 March 2024 21:43:47 UTC