diff --git a/index.bs b/index.bs index 431bebe..00e30a1 100644 --- a/index.bs +++ b/index.bs @@ -697,17 +697,13 @@ spec: STRUCTURED-FIELDS; urlPrefix: https://www.rfc-editor.org/rfc/rfc8941.html#

Interface {{ReportingObserver}}

-[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)]
@@ -728,11 +724,11 @@ dictionary ReportingObserverOptions {
 typedef sequence<Report> ReportList;
   
- A Report is the application exposed - representation of a report. type - returns [=report/type=], url returns - [=report/url=], and body returns - [=report/body=]. + A Report is the application-exposed + representation of a report. + + ReportBody is an abstract dictionary + type from which specific report types should inherit. Each {{ReportingObserver}} object has these associated concepts: - A callback function set on creation.