Skip to content
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

Replace serializers by toJSON definitions #1449

Merged
merged 3 commits into from
Jul 13, 2017
Merged

Replace serializers by toJSON definitions #1449

merged 3 commits into from
Jul 13, 2017

Conversation

dontcallmedom
Copy link
Member

@dontcallmedom dontcallmedom commented Jul 5, 2017

Using [Default] for RTCSessionDescription
Using algorithm inspired by WebIDL example for RTCIceCandidate

This currently creates a warning in ReSpec, but I don't think it should
Also, this (implicitly) creates a dependency on WebIDL level 2

close #1419


Preview | Diff

Using [Default] for RTCSessionDescription
Using algorithm inspired by [WebIDL example](https://heycam.github.io/webidl/#tojson-example) for RTCIceCandidate

This currently creates a warning in ReSpec, but [I don't think it should](https://github.com/w3c/respec/issues/1309)
Also, this (implicitly) creates a dependency on WebIDL level 2

close #1419
webrtc.html Outdated
<li>For each attribute identifier <var>attr</var> in "candidate", "sdpMid", "sdpMLineIndex", "description":
<ol>
<li>Let <var>value</var> be the result of getting the underlying value of the attribute identified by <var>attr</var>, given this <code>RTCIceCandidate</code> object.</li>
<li>Set <var>json</var>[<var>attr</var>] to <var>value</var>.</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should json[attr] be in a <code>?

webrtc.html Outdated
<dd>To invoke the <code>toJSON()</code> operation of the <code>RTCIceCandidate</code> interface, run the following steps:
<ol>
<li>Let <var>json</var> be a new <code>RTCIceCandidateInit</code> dictionary.</li>
<li>For each attribute identifier <var>attr</var> in "candidate", "sdpMid", "sdpMLineIndex", "description":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This is missing the set-delineating markers («») from the WebIDL example

@aboba aboba merged commit d37c684 into master Jul 13, 2017
@fippo
Copy link
Contributor

fippo commented Jul 14, 2017

I get respec complaints on latest master now:

No <dfn> for toJSON in RTCSessionDescription. Please define it and link 
to spec that declares it. See https://github.com/w3c/respec/wiki/data--cite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebIDL serializer has been deprecated in favor of toJSON operation
4 participants