-
Notifications
You must be signed in to change notification settings - Fork 27
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
Consider changing the spec text to allow buffered
with entryTypes
#215
Comments
Thanks for filing this and for linking to the interop issues. It's not clear to me which of the following options are most desired for everyone to interop around:
I understand the request to interop around some consistent behaviour, and I think any of these options are viable -- the first seems more flexible and "fine", to me -- but the last is consistent with existing spec and most conservative. It's not a big deal to ask authors to make separate .observe() calls, and I also think its not that common to share PerformanceObservers with a list of entry types (citation needed...). |
There's an option 4, which is to treat |
A few more notes:
Given that, I suspect we should at least:
Beyond the basics:
Given all that, I suspect we can additionally just support |
More historical context: #103 |
Feedback from WG call:
|
The spec text in question is here in observe() method section at the 3
The text means the correct behavior here is to throw a TypeError if there are both of
buffered
andentryTypes
, but either Blink or WebKit doesn't throw the exception. It behaves as if there's nobuffered
option specified.On the other hand, Gecko does throw the exception. But it is going to be changed to align with the other browser engine since there's a severe bug report (bug 1915589) that a shopping site isn't usable at all because of the exception.
That's being said, I personally prefer the throwing the exception behavior because from web developers perspective
buffered
can be specified withentryTypes
butbuffered
option is ignored, it would be confusing. So I am okay to keep this issue open until Chrome's usage counter of the case reaches to a point that we can throw the exception in the case.CCing @noamr
There's an open interop 2025 for this behavior difference. web-platform-tests/interop#856
The text was updated successfully, but these errors were encountered: