-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Content suggestion: Add one-liner to former WindowOrWorkerGlobalScope methods #8979
Comments
Probably best to remove |
@Josh-Cena @sideshowbarker Do you still want this? If so, I can finally (!) make good on my promise to do it. But I see that things like Given that, is this still useful? If so, what form should it take? If not, I'll close the issue. Sorry to have flaked on it. :-( |
Howdy @tjcrowder. Thanks for following up. @OnkarRuikar, is this covered now by the work you've been doing? |
Here is the Tweet thread for the ready reference: At the moment we have
There are already too many status banners crowding page tops, e.g. Barcode Detection API and PaymentAddress#country. So introducing a new one won't be welcomed easily. May be we could repurpose the same
The automation to add such status macros is being developed. Once it is up and running we can easily add and keep updated the statuses mentioned in this post. The automation may take time to go live depending on the interest shown by the top brass.
I agree. We are trying to utilise @webref/idl package for the automation but it doesn't have the complete data. Our script we'll have to do some inferences and some web features we need to curate manually.
Yes, BCD couldn't be burdened more. We are planning to create a separate repo for hosting such info.
This GitHub issue proposes to tag API pages with detailed scope info. So I say we keep it open to track this.
Actually the work is about secure context statuses. But I have proposed to involve |
Ah, this intersects with https://github.com/orgs/mdn/discussions/360 and #32040. |
I think we should close this issue in favour of the one outlined in https://github.com/orgs/mdn/discussions/360, unless people have objections to that (but since that discussion has been open for almost a year and I've started to implement it, I hope not to see any) 🤞 . |
I agree, https://github.com/orgs/mdn/discussions/360 covers this. I see several agreements as votes on @wbamberg's comment above, so I'm going ahead and closing this, but someone can reopen if that's premature. |
What is the new suggestion?
See this Twitter thread: Now that the potentially-confusing
WindowOrWorkerGlobalScope
prefix is gone, I suggest adding a one-liner paragraph near the top saying that the global is provided both by Window and WorkerGlobalScope (with links). Something like:Why is it important or useful?
The one good thing about the old prefix was that if you were "in the know," it told you right away whether something was Window-only (like
document
) or both (likeencodeURIComponent
).Other supporting information
We'd make this change on the same set of pages that used to have the
WindowOrWorkerGlobalScope
prefix. I don't think we need this for Window-only or WorkerGlobalScope-only properties; it looks like they already have a prefix.I should be able to work on this next week if you'd assign it to me. Any hints on how to approach it, etc., very welcome!
The text was updated successfully, but these errors were encountered: