Skip to content

Commit

Permalink
Service worker struct should be exported without a 'for' attribute (#…
Browse files Browse the repository at this point in the history
…1590)

* Service worker struct should be exported without a 'for' attribute

* Move struct to own section

* Update docs/index.bs

Co-authored-by: Jake Archibald <[email protected]>

* Update docs/index.bs

Co-authored-by: Jake Archibald <[email protected]>

* Indenting and link fix

Co-authored-by: Jake Archibald <[email protected]>
  • Loading branch information
noamr and jakearchibald authored Apr 29, 2021
1 parent b807be1 commit 9a38699
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,20 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
* <dfn export id="dfn-functional-events">Functional events</dfn>: {{fetch!!event}} and the [=events=] defined by other specifications that <a href="#extensibility">extend</a> the Service Workers specification. (See the <a href="#execution-context-events">list</a>.)
* {{message!!event}} and {{messageerror!!event}}.
</section>
<section>
<h4 id="service-worker-timing">Timing</h4>
</section>

Service workers mark certain points in time that are later exposed by the {{PerformanceNavigationTiming|navigation timing}} API.
<section>
<h3 id="service-worker-timing">Serview Worker Timing</h3>

A <dfn export>service worker timing info</dfn> is a [=/struct=]. It has the following [=struct/items=]:
Service workers mark certain points in time that are later exposed by the <a interface lt="PerformanceNavigationTiming">navigation timing</a> API.

<section dfn-for="service worker timing info">
A <dfn export>service worker timing info</dfn> is a [=/struct=]. It has the following [=struct/items=]:

<section dfn-for="service worker timing info">
: <dfn export>start time</dfn>
:: A {{DOMHighResTimeStamp}}, initially 0.
: <dfn export>fetch event dispatch time</dfn>
:: A {{DOMHighResTimeStamp}}, initially 0.
</section>
</section>
</section>

Expand Down

0 comments on commit 9a38699

Please sign in to comment.