-
Notifications
You must be signed in to change notification settings - Fork 2k
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
api.EventTarget.addEventListener.options - Missing feature for signal
option
#9555
Comments
@ddbeck The BCD for does not mention compatibility for the option I was going to answer with "we only document compatibility issues where the compatibility differs - so here the options "signal" would be assumed to "match" that of Can you confirm the process - ie. is it "missing" or not expected. If it is missing, I will update BCD with all missing options etc. |
@hamishwillee In this case, the table does have entries for
Yeah, this stuff happens. Older APIs tend to have a clunkier history. If some API originally shipped with a set of options, I would not add the individual options to BCD until the new option ( This does make a false impression in between the time that Does that help? |
Also, if you wanted to move this issue to mdn/browser-compat-data, that would also be good (unless your planning some content work as well). |
@ddbeck I don't believe I have the magic power to move this item to bcd (and I would like to - do not plan on updating the docs). Thanks for the explanation. I think you are saying that, if a parent is documented as present then (even if BCD doesn't say anything about something) you can assume that that subfeatures probably are. No certainty though, and you have lesser certaintly of the version in which they were added. This is to avoid documenting a million false cases that would have to disappear later. Feels flakey. In this case I think you are saying that, given AbortSignal was implemented later, there must be compatibility differences associated with Is there any way I can use AbortSignal versions to seed the minimum level of support in some way? i.e. say "Supported but must be >= 55 and might be even higher". I am guessing thta this is a case where I just have to hunt through bugs right? |
OK, I'll do this shortly. 👍
Yes, though I'll add that this is basically pragmatic. For starters, it's how most people tend to react to feature data; fighting an interpretation is hard (see: what does
Yes, exactly. To spell this out more clearly:
Yeah, you're on the right track here. I'll sometimes search for bugs, but if something doesn't turn up quickly, I'll test my way to an exact version. To actually do that, I'd need a test case.*
And you found one! I'd probably copy and paste this into a file (maybe dress it up the output a bit to speed things along) and try it a half-dozen times in BrowserStack to figure out which versions it first appeared in. If you (or someone else) came along with such a test case, I'd be more than happy to do the actual testing. You don't need to know everything to start an issue or PR on BCD; someone bringing in a bit of knowledge and expertise around a specific API is a huge boon, because I know the ins-and-outs of BCD itself, to get it over the finish line in short order. * Also, I should note that, for simple existence checks for APIs, there exist tools such as https://mdn-bcd-collector.appspot.com/ which obviate the need to write or find a test from scratch. |
signal
option
@hamishwillee alright, once I had a test case this all came together! Want to do the honors of opening a PR? 😃 OK, I tested this one out, using this test (modified from the example on MDN). The results are:
And we can mirror or presume I kinda didn't trust something so new (
|
Thanks very much @ddbeck - saved me lots of time, so I guess I will take the BCD task: #9562 :-) I get a pass with your test code on Chrome and edge 89. I also got a pass on ,OPera 74 - which corresponds to Chrome 88. My guess would therefore be that this actually went in on Chrome 88 ... but I don't have a version to test that with. I have guessed at chrome 89 just because I can't test. But let's continue that conversation on the PR PS Thanks for the details above. Knowing additional places to look for tests and about things like BrowserTest very useful (though it isn't clear how to run a test file like yours on that site - and the docs example works fine back quite a few versions, which it shouldn't). I am very happy to provide lots of info and have you do the real work. On the other hand, I learn new things every day doing this. |
@chrisdavidmills We seem to have missed this bug in FF86 https://bugzilla.mozilla.org/show_bug.cgi?id=1679204#c4 , which is fixed by a BCD update. Do you want me to add a release note on this? Either way, can you please remove dev-doc-needed because I can't. |
@hamishwillee yes please. I've updated DDN -> DDC |
I figured out the discrepancy for Chrome 88/90. See #9562 (comment).
OK, yes, I skipped over that detail. If I have a test locally that I want to try in BrowserStack or Sauce Labs, then I'll use ngrok to serve the file, which creates a publicly-reachable URL. Though sometimes I'll put something into CodePen or the like. It's almost as if I should write some documentation about how to test BCD stuff. 😬 |
@chrisdavidmills Relnote for this in mdn/content#3516 @ddbeck Yes, some docs on this would be lovely. I'm bookmarking all these resources whether you do or not though :-) |
MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
What information was incorrect, unhelpful, or incomplete?
The browser compatibility table.
Specific section or headline?
What did you expect to see?
Information about the signal option.
Did you test this? If so, how?
MDN Content page report details
en-us/web/api/eventtarget/addeventlistener
The text was updated successfully, but these errors were encountered: