Re: Where are instances of PerformanceNavigationTiming created?

On 6/13/14, 12:41 PM, Philippe Le Hegaret wrote:
> You get an instance of PerformanceNavigationTiming by accessing
> window.performance.navigation.

Where is that specified?

> That interface doesn't inherit from
> PerformanceEntry

That's not what 
https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming2/Overview.html#performancenavigationtiming 
says.

> and isn't meant to be accessed using getEntriesByType.

That's not what the example at the end of 
https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming2/Overview.html#introduction 
says.

Note that the document I'm looking at links to itself as "Latest 
Editor's Draft" and is linked from 
http://www.w3.org/TR/navigation-timing-2/ as "Latest Editor's draft". 
But I just noticed that it has an earlier publication date than the TR 
version, which is ... odd.

That said, in the TR version we have the same IDL and the same example, 
and still no indication that window.performance.navigation exists, or 
implements PerformanceNavigationTiming.

window.performance.navigation _is_ defined in 
http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute 
(which conflicts with the definition in Navigation Timing 2, yay), but 
there is no mention of PerformanceNavigationTiming there either.

> Are you saying it should?

No, I'm saying right now nothing I can find specifies that a 
PerformanceNavigationTiming object is ever created anywhere.

-Boris

Received on Friday, 13 June 2014 16:53:30 UTC