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

Require JSON serialization checks "in and out" #179

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
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
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ <h2>
<pre class="idl">
[Exposed=Window, SecureContext]
interface DigitalCredential : Credential {
[Default] object toJSON();
readonly attribute DOMString protocol;
readonly attribute object data;
};
Expand Down Expand Up @@ -307,6 +308,14 @@ <h3>
</li>
<li>If |requests| is empty, [=exception/throw=] a {{TypeError}}.
</li>
<li>
[=List/For each=] |request| of |requests|:
<ol>
<li>
[=serialize a JavaScript value to a JSON string|Serialize=] |request| to a JSON string. [=exception/throw|Re-throw=] any [=exception=].
</li>
</ol>
</li>
<li>
<aside class="issue">
Details of how to actually get the [=digital credential=] are
Expand Down