w3c / webrtc-pc

WebRTC 1.0 API
https://w3c.github.io/webrtc-pc/
Other
433 stars 115 forks source link

RTCIceCandidate's relayProtocol and url members can be null but not absent #2947

Closed jan-ivar closed 3 months ago

jan-ivar commented 3 months ago

The nullable readonly attribute relayProtocol says: "This is only present for local relay candidates." which is wrong since readonly attributes are always present, instead we should clarify when it is null.

Similarly, url says: "For local candidates of type "srflx" or type "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.