Open
Description
A big step forward was made in #8351, but I'd like to propose this rule to page naming:
- If the item is available on the global, use the name. Eg:
ServiceWorkerGlobalScope.skipWaiting
becomesskipWaiting
.
- If the item is typically reached via properties reachable from the global, use that property chain, omitting the global.
Document.querySelector
becomesdocument.querySelector
.CacheStorage.match
becomescaches.match
.
- If the item is an instance method/property, use the constructor name with the first set of caps lower-cased + the property name.
Element.getBoundingClientRect
becomeselement.getBoundingClientRect
.HTMLElement.offsetHeight
becomeshtmlElement.offsetHeight
.
- If the item is a static method/property, use the constructor name + the property name.
Notification.requestPermission
remainsNotification.requestPermission
.
- Otherwise, just use the name.
PointerEvent
remainsPointerEvent