-
Notifications
You must be signed in to change notification settings - Fork 26
Description
PerformanceEntry is defined here:
https://w3c.github.io/performance-timeline/#the-performanceentry-interface
PerformanceElementTiming is defined here:
https://w3c.github.io/element-timing/#sec-performance-element-timing
PerformanceElementTiming extends PerformanceEntry - yet both define an id attribute, with different types and different meaning.
interface PerformanceEntry {
readonly attribute unsigned long long id;
...
interface PerformanceElementTiming : PerformanceEntry {
...
readonly attribute [DOMString] id;
...
Looking at both specifications, the id in PerformanceElementTiming appears more useful - it is set to the id of the element that was observed; whereas, the id in Performance entry is some number that increments between subsequent entries, with no further meaning except that it currently takes part in initializing the PerformanceEntry.navigationId (see Step 5 of https://w3c.github.io/performance-timeline/#queue-a-performanceentry).
Therefore, I'm thinking it would be best to remove PerformanceEntry.id, and slightly rephrase the mechanism for assigning PerformanceEntry.navigationId so that it no longer references that attribute.
Please let me know what you think.
Additional references: