Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PerformanceTiming#dom* attributes are poorly defined #35

Closed
igrigorik opened this issue Aug 26, 2015 · 6 comments
Closed

PerformanceTiming#dom* attributes are poorly defined #35

igrigorik opened this issue Aug 26, 2015 · 6 comments
Assignees

Comments

@igrigorik
Copy link
Member

Source: https://lists.w3.org/Archives/Public/public-web-perf/2015Aug/0013.html

domLoading attribute

This attribute must return the time immediately before the user
agent sets the current document readiness to "loading".

or in the Processing Model:

Record the time as domLoading immediately before the user agent
sets the current document readiness to "loading".

The "current document readiness" of what? I'm willing to accept that a
PerformanceTiming object has an implicit reference to the Window
through the Performance object from which it was retrieved (though
that should be clarified too), but even if there is a 1-to-1 mapping
from the Window object to the Document object in general, there are
exceptions.

@igrigorik
Copy link
Member Author

First, domLoading is deprecated: https://lists.w3.org/Archives/Public/public-web-perf/2015May/0030.html

That said, looking at another metric, like domComplete:

This attribute must return a DOMHighResTimeStamp with a time value equal to the time immediately before the user agent sets the current document readiness to "complete" [HTML5].

It sounds like the point of confusion is "document"? What are the exceptions here? Need more feedback.

@Ms2ger
Copy link

Ms2ger commented Aug 27, 2015

Right, as I said, you're not defining which document you're talking about.

@plehegar plehegar self-assigned this Sep 9, 2015
@plehegar
Copy link
Member

In the case of Navigation Timing, the "current document" is the one represented by "the Window object's newest Document object."

@plehegar
Copy link
Member

See #36

@igrigorik
Copy link
Member Author

Resolved via #36, closing.

@plehegar plehegar reopened this Sep 30, 2015
@plehegar
Copy link
Member

w3c/hr-time#14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants