Skip to content

Commit

Permalink
Update Event's timeStamp initialization
Browse files Browse the repository at this point in the history
Fixes whatwg#855.
  • Loading branch information
npm1 authored Jul 20, 2021
1 parent 76a0b04 commit 1eadf0a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ urlPrefix: https://w3c.github.io/hr-time/#; spec: HR-TIME
type:typedef; urlPrefix: dom-; text: DOMHighResTimeStamp
type:dfn; text: time origin; url: dfn-time-origin
type:dfn; text: clock resolution
type:dfn; text: current high resolution time; url: dfn-current-high-resolution-time
type:dfn; text: relative high resolution coarse time; url: dfn-relative-high-resolution-coarse-time
</pre>

<pre class=link-defaults>
Expand Down Expand Up @@ -905,13 +907,9 @@ correct defaults.</p>

<li><p>Set <var>event</var>'s <a>initialized flag</a>.

<li>
<p>Initialize <var>event</var>'s {{Event/timeStamp}} attribute to a {{DOMHighResTimeStamp}}
representing the high resolution time from the <a>time origin</a> to <var>time</var>.

<p class=warning>User agents should set a minimum resolution of <var>event</var>'s
{{Event/timeStamp}} attribute to 5 microseconds following the existing <a>clock resolution</a>
recommendation. [[!HR-TIME]]
<li><p>Initialize <var>event</var>'s {{Event/timeStamp}} attribute to the
<a>relative high resolution coarse time</a> given <var>time</var> and <var>event</var>'s
<a>relevant global object</a>.

<li><p><a for=map>For each</a> <var>member</var><var>value</var> in <var>dictionary</var>, if
<var>event</var> has an attribute whose <a spec=webidl>identifier</a> is <var>member</var>, then
Expand Down Expand Up @@ -5404,8 +5402,8 @@ are:

<li><p>Initialize <var>event</var>'s {{Event/type}} attribute to the empty string.

<li><p>Initialize <var>event</var>'s {{Event/timeStamp}} attribute to a {{DOMHighResTimeStamp}}
representing the high resolution time from the <a>time origin</a> to now.
<li><p>Initialize <var>event</var>'s {{Event/timeStamp}} attribute to the result of calling
<a>current high resolution time</a> with <a>this</a>'s <a>relevant global object</a>.

<li><p>Initialize <var>event</var>'s {{Event/isTrusted}} attribute to false.

Expand Down Expand Up @@ -10099,6 +10097,7 @@ Michael™ Smith,
Mike Champion,
Mike Taylor,
Mike West,
Nicolás Peña Moreno,
Ojan Vafai,
Oliver Nightingale,
Olli Pettay,
Expand Down

0 comments on commit 1eadf0a

Please sign in to comment.