[webrtc-pc] Validation for binaryType setter in RTCDataChannel

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:52 UTC