[webrtc-pc] Initial data channel state is inconsistent

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

== Initial data channel state is inconsistent ==
In section [6.2](https://w3c.github.io/webrtc-pc/#rtcdatachannel) of the spec we have the following sentence:  
"An RTCDataChannel, created with createDataChannel or dispatched via an RTCDataChannelEvent, MUST initially be in the connecting state."

But then in the [RTCDataChannelState Enumeration state](https://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate) for 'open' it says:
"This is the initial state of an RTCDataChannel object dispatched as a part of an RTCDataChannelEvent."

I'm guessing that these two sentences were written before the "underlying data transport" concept got introduced.

To me it would make the most sense if these get changed to describe that 'connecting' is the initial state if the underlying data transport is not yet connected, and 'open' should be state if the underlying data transport is connected.

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

Received on Friday, 2 February 2018 05:25:37 UTC