Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Nov 4, 2014

That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.

Fixes gh-1836
Fixes gh-1701
Refs gh-1815
Refs gh-1820

@mgol
Copy link
Member Author

mgol commented Nov 4, 2014

I've confirmed manually all tests pass on current Chrome, Firefox and on IE8.

-846 bytes. I'm sure more can be squeezed out of it, there are most likely some optimizations now possible.

@mgol
Copy link
Member Author

mgol commented Nov 4, 2014

Note to self: IE8 has JSON.parse, we should use it and drop our own parser if possible.

EDIT: Done. We're at -1033 bytes now.

@mgol mgol self-assigned this Nov 4, 2014
@mgol mgol added this to the 3.0.0 milestone Nov 4, 2014
@mgol mgol force-pushed the drop-old branch 5 times, most recently from 3f9b803 to 63ad23c Compare November 5, 2014 13:15
@mgol
Copy link
Member Author

mgol commented Nov 7, 2014

This PR could use some eyes. Just saying. ;) @dmethvin @timmywil @markelog @gibson042

Copy link
Member

Choose a reason for hiding this comment

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

Oh, that reminds me. I think this fixes #1759

Copy link
Member Author

Choose a reason for hiding this comment

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

Does it? That issue was reported for jQuery 2; besides, this changes
nothing in browsers other than IE<8.

Michał Gołębiowski

Copy link
Member

Choose a reason for hiding this comment

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

Oh right, I was thinking of another issue.

@dmethvin
Copy link
Member

dmethvin commented Nov 7, 2014

Awesome! 👍

src/ajax.js Outdated
Copy link
Member

Choose a reason for hiding this comment

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

So the previous identification of IE<8 was incorrect?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, (I think) I've checked that, lemme look.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, I'm not sure, thanks for making me look into that. For context, see the discussion at #1597; some comments mention IE8. @markelog, you said at #1597 (comment) you couldn't reproduce it in IE8; do you think it might not be needed anymore?

Copy link
Member

Choose a reason for hiding this comment

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

Yep, this is a tricky one though so not a 100%, but i think we should remove it.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I'll get rid of it; we can always restore it later.

src/ajax.js Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Let's properly space the concat argument to bring this code in line with master and avoid future merge conflicts (cf. #1880).

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@mgol
Copy link
Member Author

mgol commented Dec 8, 2014

PR updated; I've addressed @gibson042's comments.

Copy link
Member

Choose a reason for hiding this comment

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

It would be cool to mention that we need that to support IE8, we already have that in support module, but repetition here might help out

Copy link
Member Author

Choose a reason for hiding this comment

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

@dmethvin proposed to go the other way round and I agree; I don't think duplicating such comments is needed; it's not DRY. It's clear here that this one is needed for browsers that misbehave on the input support test; the rest is documented over the test itself.

Copy link
Member Author

Choose a reason for hiding this comment

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

@markelog: @dmethvin even had a PR cleaning up support comments some time ago that removed a lot of comments like the one you proposed here.

EDIT: this is the commit: d837f11. Look e.g. at src/attributes/prop.js, src/attributes/val.js etc.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, DRY comments :-), when i was reviewing this, i had spent some time searching for what env this was required to, hence my proposition.

But it didn't take that long, so no worries then

Copy link
Member Author

Choose a reason for hiding this comment

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

Heh. :) I guess we can discuss it if you prefer the other option; there would be a lot of comments to add so it's a matter for a separate PR anyway. Current way is consistent with the rest of the code so let's leave it as is and we can revisit later. :)

Copy link
Member

Choose a reason for hiding this comment

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

sure thing!

@markelog
Copy link
Member

markelog commented Dec 8, 2014

Nicely done!

That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.

Fixes jquerygh-1836
Fixes jquerygh-1701
Refs jquerygh-1815
Refs jquerygh-1820
@mgol
Copy link
Member Author

mgol commented Dec 8, 2014

@markelog I've corrected the test; if you have no further remarks I'd like to land it (I'm currently running the test suite in supported browsers to make sure I didn't break anything).

@mgol mgol merged commit 90d7cc1 into jquery:compat Dec 8, 2014
@mgol mgol deleted the drop-old branch December 8, 2014 21:28
@mgol
Copy link
Member Author

mgol commented Dec 8, 2014

Landed! -1203 bytes.

@markelog
Copy link
Member

markelog commented Dec 8, 2014

Hooray!

@mgol mgol removed the Needs review label Dec 8, 2014
@mgol
Copy link
Member Author

mgol commented Dec 8, 2014

The regular run is clean: http://swarm.jquery.org/job/3945. We'll see Androids tomorrow but I've tested locally on 2.3 & 4.0 and it was fine.

@dmethvin
Copy link
Member

dmethvin commented Dec 8, 2014

👏

@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants