@@ -697,17 +697,13 @@ spec: STRUCTURED-FIELDS; urlPrefix: https://www.rfc-editor.org/rfc/rfc8941.html#
697
697
<h3 id=interface-reporting-observer>Interface {{ReportingObserver}}</h3>
698
698
699
699
<pre class="idl">
700
- [Exposed=(Window,Worker)]
701
- interface ReportBody {
702
- [Default] object toJSON();
700
+ dictionary ReportBody {
703
701
};
704
702
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;
711
707
};
712
708
713
709
[Exposed=(Window,Worker)]
@@ -728,11 +724,11 @@ dictionary ReportingObserverOptions {
728
724
typedef sequence<Report> ReportList;
729
725
</pre>
730
726
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> .
736
732
737
733
Each {{ReportingObserver}} object has these associated concepts:
738
734
- A <dfn for=ReportingObserver>callback</dfn> function set on creation.
0 commit comments