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

Change Report and ReportBody interfaces to dicts. #258

Open
wants to merge 1 commit 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
24 changes: 10 additions & 14 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -679,17 +679,13 @@ <h2 id="observers">Reporting Observers</h2>
<h3 id=interface-reporting-observer>Interface {{ReportingObserver}}</h3>

<pre class="idl">
[Exposed=(Window,Worker)]
interface ReportBody {
[Default] object toJSON();
dictionary ReportBody {
};

[Exposed=(Window,Worker)]
interface Report {
[Default] object toJSON();
readonly attribute DOMString type;
readonly attribute DOMString url;
readonly attribute ReportBody? body;
dictionary Report {
DOMString type;
DOMString url;
ReportBody? body;
};

[Exposed=(Window,Worker)]
Expand All @@ -710,11 +706,11 @@ <h3 id=interface-reporting-observer>Interface {{ReportingObserver}}</h3>
typedef sequence&lt;Report> ReportList;
</pre>

A <dfn id=dom-report interface>Report</dfn> is the application exposed
representation of a <a>report</a>. <dfn attribute for="Report">type</dfn>
returns [=report/type=], <dfn attribute for="Report">url</dfn> returns
[=report/url=], and <dfn attribute for="Report">body</dfn> returns
[=report/body=].
A <dfn id=dom-report dictionary>Report</dfn> is the application-exposed
representation of a <a>report</a>.

<dfn id="reportbody" dictionary>ReportBody</dfn> is an abstract dictionary
type from which specific report types should inherit.

Each {{ReportingObserver}} object has these associated concepts:
- A <dfn for=ReportingObserver>callback</dfn> function set on creation.
Expand Down