-
Notifications
You must be signed in to change notification settings - Fork 27.4k
fix(select): normalize options without value attrs #6519
fix(select): normalize options without value attrs #6519
Conversation
Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
I am not sure if this is a valid issue, but even if (the empty string) should be the default value when there is no |
@lgalfaso thank you for the feedback! What do you recommend? Just handle the case of other attributes or something else? |
I just updated that to handle other HTML attributes. |
@cironunes I think it still needs a small refinement, please check the comments I posted. BTW, thanks for the patch! |
@cironunes it took me some extra time to understand what is going on, but I think I have all the moving parts now
This implies, the correct check should still be The test from the patch are ok, but there should be tests that check that when there is an |
@lgalfaso thank you for that. I totally forgot about jqlite to check the attr. |
Need to take a look deeper to understand why in IE9 it's returning a string instead of an array. |
02dc2aa
to
fd2d6c0
Compare
cad9560
to
f294244
Compare
e8dc429
to
e83fab9
Compare
4dd5a20
to
998c61c
Compare
@cironunes this patch is very old. There was a major refactoring of I am going to close this issue as we really want people to upgrade to 1.4. Please open another issue if this is not acceptable. |
👍 |
In order to fix #6351 I'm submitting this changes based on @caitp comments.
Note that the commented expectation is returning
[["? undefined:undefined ?"],"--select--","x","y"]
is it expected?