-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
Page titles should reflect usage: crypto.getRandomValues instead of Crypto: getRandomValues() #8977
Comments
Thanks Jake! You didn't mention what to do if the item is a static method/property. Luckily this (and more on titles) was discussed and answered here: https://github.com/mdn/content/discussions/5121#discussioncomment-785747 |
I've added a step for static methods/properties. |
I believe this is already completed. |
I still think this could be better. For example: https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues - it isn't until the example that you discover this can be called via The steps I provided in the OP would have titled this page |
We now recommend large-scale suggestions to be tracked separately (because the traffic here is huge), so further improvements could be discussed within https://github.com/mdn/mdn-community or https://github.com/mdn/mdn. Regardless, I'm ambivalent: while |
Which is best for this topic?
Yes. Where else do you see instances of
It doesn't. That's why I made the distinction in the OP "If the item is typically reached via properties reachable from the global" https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues - Right now, if I wanted to find out how to use https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register - Right now, if I wanted to find out how to register a service worker, MDN buries key information in the example, which is way down the page. Information of how to access the function shouldn't appear way after it's params, return value etc etc. It feels like developers are likely to land on this page because they want to know how to register a service worker. MDN doesn't currently cater well for this use-case. https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined - Right now, if I wanted to find out when a custom element is defined, MDN buries key information in the middle of the second and final example, which is at the end of the content. Information of how to access the function shouldn't appear way after it's params, return value etc etc. It feels like developers are likely to land on this page because they want to know how tell when a custom element is defined. MDN doesn't currently cater well for this use-case. As a counter-example, I can provide more examples if needed, but I'd hope that MDN aimed to hit these use-cases, and wouldn't be ambivalent to these kinds of failures. |
Okay, I'm going to reopen this. cc @mdn/yari-content-web-api for further discussions |
A big step forward was made in #8351, but I'd like to propose this rule to page naming:
ServiceWorkerGlobalScope.skipWaiting
becomesskipWaiting
.Document.querySelector
becomesdocument.querySelector
.CacheStorage.match
becomescaches.match
.Element.getBoundingClientRect
becomeselement.getBoundingClientRect
.HTMLElement.offsetHeight
becomeshtmlElement.offsetHeight
.Notification.requestPermission
remainsNotification.requestPermission
.PointerEvent
remainsPointerEvent
The text was updated successfully, but these errors were encountered: