W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2019

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

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Tue, 30 Apr 2019 01:50:32 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-438574286-1556589030-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 9 October 2019 15:15:03 UTC