diff --git a/index.html b/index.html
index 58bd63e..25ab8df 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.
- 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 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
):
+
+
+ - Assert: entryType is defined in the entry type registry.
+
- Initialize entry's startTime to startTime.
+
- Initialize entry's entryType to entryType.
+
- Initialize entry's name to name.
+
- Initialize entry's endTime to endTime.
+