Skip to content

Commit

Permalink
Merge pull request #2909 from w3c/binarytype-setter
Browse files Browse the repository at this point in the history
Fix binaryType setter requirements
  • Loading branch information
jan-ivar committed Nov 16, 2023
2 parents 1804e42 + f374868 commit c9901ed
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
12 changes: 12 additions & 0 deletions amendments.json
Original file line number Diff line number Diff line change
Expand Up @@ -529,5 +529,17 @@
"status": "candidate",
"id": 38
}
],
"dom-datachannel-binarytype-desc": [
{
"description": "Fix binaryType setter requriements",
"pr": 2909,
"type": "correction",
"status": "candidate",
"tests": [
"webrtc/RTCDataChannel-binaryType.window.js"
],
"id": 39
}
]
}
2 changes: 1 addition & 1 deletion base-rec.html
Original file line number Diff line number Diff line change
Expand Up @@ -14120,7 +14120,7 @@ <h4 id="attributes-17">
<dfn id="dom-datachannel-binarytype" data-export="" data-dfn-type="attribute" data-idl="attribute" data-title="binaryType" data-dfn-for="RTCDataChannel" data-type="BinaryType" data-lt="binaryType" data-local-lt="RTCDataChannel.binaryType"><code>binaryType</code></dfn> of type
<span class="idlAttrType">BinaryType</span>
</dt>
<dd>
<dd id="dom-datachannel-binarytype-desc">
<p class="needs-tests">
The <a data-link-type="idl" href="#dom-datachannel-binarytype" class="internalDFN" id="ref-for-dom-datachannel-binarytype-5"><code><code>binaryType</code></code></a> attribute <em class="rfc2119">MUST</em>, on getting, return the
value to which it was last set. On setting, if the new value
Expand Down
14 changes: 5 additions & 9 deletions webrtc.html
Original file line number Diff line number Diff line change
Expand Up @@ -14438,18 +14438,14 @@ <h2>
<dfn id="dom-datachannel-binarytype">binaryType</dfn> of type
<span class="idlAttrType">BinaryType</span>
</dt>
<dd>
<dd id="dom-datachannel-binarytype-desc">
<p>
The {{binaryType}} attribute MUST, on getting, return the
value to which it was last set. On setting, if the new value
is either the string <code class="html">"blob"</code> or the
string <code class="html">"arraybuffer"</code>, then set the
IDL attribute to this new value. Otherwise, [=
exception/throw =] a {{SyntaxError}}. <span data-tests=
The {{binaryType}} attribute returns the
value to which it was last set. <span data-tests=
"RTCPeerConnection-createDataChannel.html">When an
{{RTCDataChannel}} object is created, the
{{RTCDataChannel/binaryType}} attribute MUST be initialized
to the string <code class="html">"blob"</code>.</span>
{{binaryType}} attribute MUST be initialized
to the string {{BinaryType/"blob"}}.</span>
</p>
<p>
This attribute controls how binary data is exposed to
Expand Down

0 comments on commit c9901ed

Please sign in to comment.