-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Issue with "Document.cookie": In examples #5, #6 shouldn't it be "ES2015" instead of "ES2016" ? #4912
Comments
@ddziara I think we refer ES2016 as ES7, ES2015 as ES6 and ES5 for 2009 one |
MDN uses official names (so ES2015 for ES6, and ES2016 as ES7). But the question was whether this should be "ES2015" instead of "ES2016". However perhaps there is something else about this example which makes it ES2016. I don't think so but I'm not sufficiently expert to be sure. Which is why I didn't assign to me :-) |
Yeah I was assuming it to be "ES2015" because of arrow functions. I'll do some more research on it . |
I can't speak to that. It's a content issue. However, I see that there are flaws in the live samples in that it assumes that |
As per my knowledge it returns undefined if no value satisfies the condition. |
So use of ES2016 is correct for example 6 because it uses includes, as @Blakelist7 refers to in #4912 (comment) I wonder if to avoid this coming up again we should add a note? e.g. example 5 might still be ES2015 - I don't see anything there introduced later. |
Thanks @hamishwillee for looking into the issue. Adding a note is a great idea. |
Example mdn#5, #6 in `Document.cookie` Signed-off-by: Kanwal Singh <[email protected]> fixes: mdn#4912
Example: 5, 6 in `Document.cookie` Signed-off-by: Kanwal Singh <[email protected]> fixes: mdn#4912
Closing per #4912 (comment) |
MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie
What information was incorrect, unhelpful, or incomplete?
Specific section or headline?
What did you expect to see?
Did you test this? If so, how?
MDN Content page report details
en-us/web/api/document/cookie
The text was updated successfully, but these errors were encountered: