Skip to content
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

IE8 does not fully support according to the proposal for Array.prototype.splice #5004

Merged
merged 2 commits into from
Oct 17, 2019

Conversation

aleen42
Copy link
Contributor

@aleen42 aleen42 commented Oct 17, 2019

According to #4996, hope to add a note for Array.prototype.splice to mention that IE8 has not fully support this method when the second parameter is omitted.

@ghost ghost added the data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Oct 17, 2019
@aleen42 aleen42 changed the title IE8 does not fully support according to the proposal for Array.prototype.splice #4996 IE8 does not fully support according to the proposal for Array.prototype.splice Oct 17, 2019
@queengooborg
Copy link
Contributor

Hey @aleen42, thanks for the PR! However, I highly doubt that this issue was present in IE8 alone. Furthermore, we shouldn't be adding an additional compatibility statement for just the note alone; the note should be a part of the initial statement.

I'll go ahead and do some more research to confirm its presence in older IE versions!

@aleen42
Copy link
Contributor Author

aleen42 commented Oct 17, 2019

@vinyldarkscratch 👌

@queengooborg queengooborg self-requested a review October 17, 2019 05:00
@queengooborg
Copy link
Contributor

Just did some tests. As I suspected, this was an issue that was present from IE 5.5 through IE 8. As such, we should write the note as follows: "From Internet Explorer 5.5 through 8, all elements of the array will not be deleted if deleteCount is omitted. This behavior was fixed in Internet Explorer 9."

@aleen42
Copy link
Contributor Author

aleen42 commented Oct 17, 2019

@vinyldarkscratch And what version_added should I set for this note? Still 8?

@queengooborg
Copy link
Contributor

The note shouldn’t be a separate compatibility statement — the new one with “version_added: 8” should be removed entirely, leaving just the one for IE 5.5, with the note there. It should look like so:

"ie": {
  "version_added": "5.5",
  "notes": "From Internet Explorer 5.5 through 8, all elements of the array will not be deleted if <code>deleteCount</code> is omitted. This behavior was fixed in Internet Explorer 9."
}

By the way, I noticed you were force pushing. If you’re force pushing to keep the commit log clean, we actually squash merge all PRs here, so there’s no need to consolidate your changes into one commit. 😉

@aleen42
Copy link
Contributor Author

aleen42 commented Oct 17, 2019

@vinyldarkscratch Thanks for you suggestions.

Copy link
Contributor

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And thank you for your quick changes! This is looking good to me, let’s get this merged!

Oh and, welcome to BCD!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants