W3C home > Mailing lists > Public > public-webrtc@w3.org > June 2017

[webrtc-pc] Validation for binaryType setter in RTCDataChannel

From: Soares Chen via GitHub <sysbot+gh@w3.org>
Date: Tue, 13 Jun 2017 06:24:46 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-235447954-1497335085-sysbot+gh@w3.org>
soareschen has just created a new issue for https://github.com/w3c/webrtc-pc:

== Validation for binaryType setter in RTCDataChannel ==
The description for `binaryType` do not mention about validation on setting. 

> On setting, the user agent must set the IDL attribute to the new value.

An additional paragraph for validation should be copied from WebSocket:

> On setting, if the new value is either the string "blob" or the string "arraybuffer", then set the IDL attribute to this new value. Otherwise, throw a SyntaxError exception.

Alternatively, an enum could be defined for binaryType attribute.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1379 using your GitHub account
Received on Tuesday, 13 June 2017 06:24:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:51 UTC