Skip to content

Drop BinaryType enum definition #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 30, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Drop BinaryType enum definition
The Presentation API defined the `BinaryType` enumeration because it was
referencing HTML5. That's no longer needed because the spec now references
HTML LS, which defines the enumeration.
  • Loading branch information
tidoust committed Sep 27, 2019
commit a96246fe78479ae5a82697aaad3f31093b704dce
36 changes: 19 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ <h2>
"https://html.spec.whatwg.org/multipage/offline.html#application-cache">
application cache</a></dfn>
</li>
<li>
<a href=
"https://html.spec.whatwg.org/multipage/web-sockets.html#binarytype">
<dfn><code>BinaryType</code></dfn></a>
</li>
<li>
<dfn data-lt="browsing context|browsing contexts"><a href=
"https://html.spec.whatwg.org/multipage/browsers.html#browsing-context">browsing
Expand Down Expand Up @@ -2148,7 +2153,6 @@ <h3>
</p>
<pre class="idl">
enum PresentationConnectionState { "connecting", "connected", "closed", "terminated" };
enum BinaryType { "blob", "arraybuffer" };

[SecureContext, Exposed=Window]
interface PresentationConnection : EventTarget {
Expand All @@ -2171,7 +2175,7 @@ <h3>
};

</pre>
<div data-dfn-for="PresentationConnection" link-for=
<div data-dfn-for="PresentationConnection" data-link-for=
"PresentationConnection">
<p>
The <dfn><code>id</code></dfn> attribute specifies the
Expand Down Expand Up @@ -2238,19 +2242,18 @@ <h3>
</p>
<p>
The <dfn>binaryType</dfn> attribute can take one of the values of
<dfn data-dfn-for="">BinaryType</dfn>. When a
<a data-link-for="">BinaryType</a>. When a
<a>PresentationConnection</a> object is created, its
<a>binaryType</a> attribute MUST be set to the string "<a link-for=
"BinaryType">arraybuffer</a>". On getting, it MUST return the last
<a>binaryType</a> attribute MUST be set to the string
"<code>arraybuffer</code>". On getting, it MUST return the last
value it was set to. On setting, the user agent MUST set the
attribute to the new value.
</p>
<div class="note">
The <a>binaryType</a> attribute allows authors to control how
binary data is exposed to scripts. By setting the attribute to
"<dfn data-dfn-for="BinaryType">blob</dfn>", binary data is
returned in <a>Blob</a> form; by setting it to "<dfn data-dfn-for=
"BinaryType">arraybuffer</dfn>", it is returned in
"<code>blob</code>", binary data is returned in <a>Blob</a> form;
by setting it to "<code>arraybuffer</code>", it is returned in
<a>ArrayBuffer</a> form. The attribute defaults to
"<code>arraybuffer</code>". This attribute has no effect on data
sent in a string form.
Expand Down Expand Up @@ -2487,17 +2490,16 @@ <h4>
<var>messageData</var> with type <code>DOMString</code>.
</li>
<li>If <var>messageType</var> is <code>binary</code>, and
<a>binaryType</a> attribute is set to "<a link-for=
"BinaryType">blob</a>", then initialize <var>event</var>'s
<code>data</code> attribute to a new <a>Blob</a> object with
<var>messageData</var> as its raw data.
<a>binaryType</a> attribute is set to "<code>blob</code>", then
initialize <var>event</var>'s <code>data</code> attribute to a
new <a>Blob</a> object with <var>messageData</var> as its raw
data.
</li>
<li>If <var>messageType</var> is <code>binary</code>, and
<a>binaryType</a> attribute is set to "<a link-for=
"BinaryType">arraybuffer</a>", then initialize
<var>event</var>'s <code>data</code> attribute to a new
<a>ArrayBuffer</a> object whose contents are
<var>messageData</var>.
<a>binaryType</a> attribute is set to
"<code>arraybuffer</code>", then initialize <var>event</var>'s
<code>data</code> attribute to a new <a>ArrayBuffer</a> object
whose contents are <var>messageData</var>.
</li>
</ol>
</li>
Expand Down