diff --git a/index.html b/index.html index 58bd63e..b908cc6 100644 --- a/index.html +++ b/index.html @@ -322,50 +322,51 @@

The PerformanceEntry interface

[Default] object toJSON(); };
-
id
-
- This attribute MUST return the value of this's id. -
name
- This attribute MUST return an identifier for this - PerformanceEntry object. This identifier does not have to be - unique. + This attribute must return the value it is initialized to. It represents an identifier for + this PerformanceEntry object. This identifier does not have to be unique.
entryType
- This attribute MUST return the type of the interface represented by - this PerformanceEntry object. + This attribute must return the value it is initialized to. +

All `entryType` values are defined in the relevantregistry. Examples include: "mark" and "measure" [[USER-TIMING-2]], "navigation" [[NAVIGATION-TIMING-2]], - "resource" [[RESOURCE-TIMING-2]], - - and "longtask".

+ and "resource" [[RESOURCE-TIMING-2]].

startTime
-
This attribute MUST return the time value of the first recorded - timestamp of this performance metric. If the startTime concept doesn't - apply, a performance metric may choose to return a `startTime` of - 0.
+
This attribute must return the value it is initialized to. It represents the time value of + the first recorded timestamp of this performance metric. Its initial value is 0.
duration
- This attribute MUST return the time value of the duration of the entire - event being recorded by this PerformanceEntry. Typically, this - would be the time difference between the last recorded timestamp and - the first recorded timestamp of this PerformanceEntry. If the - duration concept doesn't apply, a performance metric may choose to - return a `duration` of 0. + The getter steps for the duration attribute are to return 0 if this's endTime + is 0; otherwise this's endTime - this's startTime.
navigationId
- This attribute MUST return the value of this's navigationId. + This attribute MUST return the value of it is initialized to.

When toJSON is called, run [[WebIDL]]'s default toJSON steps.

+ +

A PerformanceEntry has a {{DOMHighResTimeStamp}} endTime, + initially 0. + +

To initialize a PerformanceEntry entry given a {{DOMHighResTimeStamp}} startTime, + a DOMString entryType, a DOMString name, and an optional {{DOMHighResTimeStamp}} endTime (default 0): + +

    +
  1. Assert: entryType is defined in the entry type registry. +
  2. Set entry's startTime to startTime. +
  3. Set entry's entryType to entryType. +
  4. Set entry's name to name. +
  5. Set entry's endTime to endTime. +
@@ -380,7 +381,7 @@

The PerformanceObserver interface

  • A PerformanceEntryList object called the observer buffer that is initially empty.
  • -
  • A DOMString observer type which is initially +
  • A DOMS observer type which is initially "undefined".
  • A boolean requires dropped entries which is initially set to false.