-
Notifications
You must be signed in to change notification settings - Fork 278
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
Not a document
API
#71
Comments
It's always fun trying to figure out where these APIs belong :) We chose document because the result varies by the calling context due to filtering. |
Yes, fun. The information source not being bound to the document is something that carries more weight (at least in my view). As for conditional on context, calls to |
It's a good question. I brought it up to the TAG as part of the review w3ctag/design-reviews#726. |
With my HTML editor hat on, |
Please consider this: using |
@domenic, I'm not sure that it is a superstition. It's about asking the appropriate entity. If you see |
Mmm, they're both global objects to the current tab, so just using the actual global object instead of nesting under navigator makes the most sense. |
So how does |
+1 for avoiding |
In terms of precedent, I see cookies are on Is there a document written somewhere with guidance with what should hang off of what object? Wiithout such a reference I'm unclear on how we should proceed here and would prefer to just keep it on |
If the information the API exposes is a property of the browser (or indeed the user), why use
document
rather thannavigator
?The text was updated successfully, but these errors were encountered: