[webrtc-pc] Says to count datachannel label & protocol in bytes, but they're USVString (#2191)

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

== Says to count datachannel label & protocol in bytes, but they're USVString ==
[Spec](https://w3c.github.io/webrtc-pc/#dom-peerconnection-createdatachannel) says:
*"If [[DataChannelLabel/DataChannelProtocol]] is longer than 65535 bytes, throw a TypeError. "*

But `label` and `protocol` are `USVString`.

https://github.com/w3c/webrtc-pc/issues/543#issue-140173549 says these are *"mapped into UTF-8 in the underlying protocol"*, so we should specify this conversion before counting in these validation steps.

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

Received on Tuesday, 30 April 2019 01:50:33 UTC