Skip to content

Commit 1e48c2e

Browse files
authored
Merge pull request #284 from w3c/remove_interface
Remove the Report and ReportBody interfaces
2 parents b9ba28c + e5440a2 commit 1e48c2e

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

index.bs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -697,17 +697,13 @@ spec: STRUCTURED-FIELDS; urlPrefix: https://www.rfc-editor.org/rfc/rfc8941.html#
697697
<h3 id=interface-reporting-observer>Interface {{ReportingObserver}}</h3>
698698

699699
<pre class="idl">
700-
[Exposed=(Window,Worker)]
701-
interface ReportBody {
702-
[Default] object toJSON();
700+
dictionary ReportBody {
703701
};
704702

705-
[Exposed=(Window,Worker)]
706-
interface Report {
707-
[Default] object toJSON();
708-
readonly attribute DOMString type;
709-
readonly attribute DOMString url;
710-
readonly attribute ReportBody? body;
703+
dictionary Report {
704+
DOMString type;
705+
DOMString url;
706+
ReportBody? body;
711707
};
712708

713709
[Exposed=(Window,Worker)]
@@ -728,11 +724,11 @@ dictionary ReportingObserverOptions {
728724
typedef sequence&lt;Report> ReportList;
729725
</pre>
730726

731-
A <dfn id=dom-report interface>Report</dfn> is the application exposed
732-
representation of a <a>report</a>. <dfn attribute for="Report">type</dfn>
733-
returns [=report/type=], <dfn attribute for="Report">url</dfn> returns
734-
[=report/url=], and <dfn attribute for="Report">body</dfn> returns
735-
[=report/body=].
727+
A <dfn id=dom-report dictionary>Report</dfn> is the application-exposed
728+
representation of a <a>report</a>.
729+
730+
<dfn id="reportbody" dictionary>ReportBody</dfn> is an abstract <a>dictionary</a>
731+
type from which specific report types should <a for=dictionary>inherit</a>.
736732

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

0 commit comments

Comments
 (0)