droppedEntriesCount documentation incorrect #33506
Labels
Content:WebAPI
Web API docs
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/PerformanceObserver
What specific section or headline is this issue about?
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/PerformanceObserver#droppedentriescount
What information was incorrect, unhelpful, or incomplete?
This page (added in #22318) says that
droppedEntriesCount
is an optional property ofPerformanceObserverCallback
but it's a nested property from within aPerformanceObserverCallbackOptions
.What did you expect to see?
PerformanceObserverCallback
can return an optional[PerformanceObserverCallbackOptions](https://w3c.github.io/performance-timeline/#dom-performanceobservercallbackoptions)
dictionary property which will containdroppedEntriesCount
(when supported).Do you have any supporting links, references, or citations?
The code sample is also wrong and should be like this:
You can also see this in the spec: https://w3c.github.io/performance-timeline/#dom-performanceobservercallbackoptions
Do you have anything more you want to share?
I'd fix this myself, but seems a little complicated as to how
PerformanceObserverCallback
would be set up and got a little lost when trying it myself.Also not sure whether bcd should be updated to nest
droppedEntriesCount
underPerformanceObserverCallbackOptions
or if it's fine to leave where it is?All in all, could do with someone more familiar with the structure of MDN to tackle this.
Happy to help review any changes here though!
The text was updated successfully, but these errors were encountered: