Skip to content

Commit

Permalink
Use USVString for datachannel.send()
Browse files Browse the repository at this point in the history
This was fixed in WebRTC 1.0 PR 387:
w3c/webrtc-pc#387
  • Loading branch information
aboba committed Nov 28, 2015
1 parent 3738b04 commit f1ae98c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ortc.html
Expand Up @@ -4093,7 +4093,7 @@ <h3>Interface Definition</h3>
</tr>
</table>
</dd>
<dt>void send (DOMString data)</dt>
<dt>void send (USVString data)</dt>
<dd>
<p>Run the steps described by the <code>send()</code> algorithm with argument type <code>string</code> object.</p>
</dd>
Expand Down Expand Up @@ -4138,9 +4138,8 @@ <h3>Interface Definition</h3>
<li>
<p><code>string</code> object:</p>
<p>
Let <var>data</var> be the result of converting the
argument object to a sequence of Unicode characters and
increase the <code><a href="#dom-datachannel-bufferedamount">bufferedAmount</a></code>
Let <var>data</var> be the object and increase the
<code><a href="#dom-datachannel-bufferedamount">bufferedAmount</a></code>
attribute by the number of bytes needed to express
<var>data</var> as UTF-8.
</p>
Expand Down

0 comments on commit f1ae98c

Please sign in to comment.