Skip to content

Conversation

@SeanHenderson
Copy link
Contributor

IE versions greater than 9 do not handle the old regular expression well with large html content
This is due to the use of a non-capturing group after a very common html character (<).

Test suite: http://jsfiddle.net/Lwa0t5rp/3/
Microsoft bug: https://connect.microsoft.com/IE/feedback/details/1736512/regular-expressions-are-slower-in-edge-than-in-ie8

Fixes gh-2563
Closes gh-2574

IE versions greater than 9 do not handle the old regular expression well with large html content
This is due to the use of a non-capturing group after a very common html character (<).

Test suite: http://jsfiddle.net/Lwa0t5rp/3/
Microsoft bug: https://connect.microsoft.com/IE/feedback/details/1736512/regular-expressions-are-slower-in-edge-than-in-ie8

Fixes jquerygh-2563
Closes jquerygh-2574
@mgol
Copy link
Member

mgol commented Sep 3, 2015

@SeanHenderson A tip: you should never commit anything to master yourself, this makes it very hard for you to pull upstream changes if this PR needs to be rebased over latest code; or if you wanted to create a separate, parallel PR. Always create a dedicated branch just for a PR and have master always mirror the official master. https://contribute.jquery.org/commits-and-pull-requests/ has more info.

This PR can stay based on master if you prefer this way, this is mainly an advise for the future.

@mgol
Copy link
Member

mgol commented Sep 3, 2015

(BTW, if you have JSHint errors on a freshly cloned repository, don't care about it too much - JSHint has broken our build so it's red temporarily...)

@SeanHenderson
Copy link
Contributor Author

I had a look created a branch tried to reset my master but failed.
(warning: refname 'jquery/master' is ambiguous.)

If it will not effect me in future I rather have this PR go in as is.
The next changes will definitely be made as you have suggested.

@mgol
Copy link
Member

mgol commented Sep 8, 2015

@SeanHenderson Did you read my comment at #2568 (comment)? I think some other regexes might be affected as well.

@mgol mgol added the Needs info label Sep 8, 2015
@SeanHenderson
Copy link
Contributor Author

Hi I did read your comment and had a look at the performance of that regular expression. I saw it does have an issue but I do not have a suitable replacement at the moment. I traced the changes that introduced the optimised code path and can see it has changed quite bit over time. At one point regular expression was written similar to the way I have it now. I would prefer to create a separate PR for any changes to other regular expressions.

@mgol mgol removed the Needs info label Sep 8, 2015
@mgol mgol closed this in d4def22 Sep 8, 2015
@mgol
Copy link
Member

mgol commented Sep 8, 2015

@SeanHenderson OK, I landed this PR on both branches, thanks! If you had time to look at these other regexes, that'd be great.

mgol pushed a commit that referenced this pull request Sep 8, 2015
IE versions greater than 9 do not handle the old regular expression well
with large html content. This is due to the use of a non-capturing group
after a very common html character (<).

Test suite: http://jsfiddle.net/Lwa0t5rp/3/
Microsoft bug: https://connect.microsoft.com/IE/feedback/details/1736512/

(cherry-picked from d4def22)

Fixes gh-2563
Closes gh-2574
@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.

3 participants