Skip to content

Attributes: Use the option val hook in select val hook and simplify it #1901

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

Merged
merged 1 commit into from
Dec 8, 2014

Conversation

mgol
Copy link
Member

@mgol mgol commented Dec 4, 2014

The hook is still defined; not using it could cause issues in IE<11.
Also, IE10 no longer throws when value not set but it still doesn't trim the
value. IE11 has all those issues fixed; support comments are updated.

Fixes gh-1902
Closes gh-1901

Most of this PR will need to be cherry-picked to compat as well.

Funny what things you find when you remove support for older browsers. ;)

@mgol mgol added this to the 3.0.0 milestone Dec 4, 2014
@mgol mgol self-assigned this Dec 4, 2014
@mgol mgol added the Attributes label Dec 4, 2014
@mgol mgol added the Bug label Dec 4, 2014
@mgol
Copy link
Member Author

mgol commented Dec 4, 2014

@dmethvin Should I create an issue for that first for changelog purposes? I guess labels would then be dropped from this PR.

@dmethvin
Copy link
Member

dmethvin commented Dec 4, 2014

Seems like that would make the changelog better, so yeah let's do it.

@mgol mgol force-pushed the select-option-hook branch from 40e70bd to c97d8ea Compare December 4, 2014 14:58
mgol added a commit to mgol/jquery that referenced this pull request Dec 4, 2014
The hook is still defined; not using it could cause issues in IE<11.
Also, IE10 no longer throws when value not set but it still doesn't trim the
value. IE11 has all those issues fixed; support comments are updated.

Fixes jquerygh-1902
Closes jquerygh-1901
@mgol
Copy link
Member Author

mgol commented Dec 4, 2014

@dmethvin Done: #1902. I updated the commit message as well.

@dmethvin
Copy link
Member

dmethvin commented Dec 4, 2014

LGTM

@gibson042
Copy link
Member

👍

@markelog
Copy link
Member

markelog commented Dec 8, 2014

If tests are passing, then LGTM

The hook is still defined; not using it could cause issues in IE<11.
Also, IE10 no longer throws when value not set but it still doesn't trim the
value. IE11 has all those issues fixed; support comments are updated.

Fixes jquerygh-1902
Closes jquerygh-1901
@mgol mgol force-pushed the select-option-hook branch from c97d8ea to f6302b0 Compare December 8, 2014 21:42
@mgol mgol merged commit f6302b0 into jquery:master Dec 8, 2014
@mgol mgol deleted the select-option-hook branch December 8, 2014 21:46
mgol added a commit that referenced this pull request Dec 8, 2014
The hook is still defined; not using it could cause issues in IE<11.
Backport the test from the master branch.

Also, IE10 no longer throws when value not set but it still doesn't trim the
value. IE11 has all those issues fixed; support comments are updated.

(cherry-picked from f6302b0)

Fixes gh-1902
Closes gh-1901
@mgol mgol removed this from the 3.0.0 milestone Oct 17, 2015
mgol added a commit that referenced this pull request Nov 10, 2015
The hook is still defined; not using it could cause issues in IE<11.
Also, IE10 no longer throws when value not set but it still doesn't trim the
value. IE11 has all those issues fixed; support comments are updated.

Fixes gh-1902
Closes gh-1901
@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.

select.val(newValue) doesn't work in IE10 if option contents have leading/trailing spaces
4 participants