Fixed issue #518: Textarea and select value isn't preserved#542
Fixed issue #518: Textarea and select value isn't preserved#542the-ress wants to merge 4 commits intodefunkt:masterfrom
Conversation
…en going back/forward
|
Hi thanks for the contribution. This would need automated tests in order to be accepted. The tests should also verify whether regular Does this handle |
|
Given this PR is already a few months old, I have decided to jump in and help with the tests, see https://github.com/masone/jquery-pjax/commit/f9c06149f6058a1fd440d3e885c4d225a9e58e29. I can confirm that When testing @the-ress' changes, the one for the single I'm new to jquery-pjax, so please have a thorough look before merging my changes. |
|
Thank you for the tests. I never managed to set up the environment to be able to run them. The single value select was a bug in the original PR. I fixed it and merged your test branch. |
|
@the-ress I'm sorry you had problems running the test suite locally. You need to have Ruby with Bundler installed and run |
There was a problem hiding this comment.
No, text() has similar functionality: http://api.jquery.com/text/#text-function
|
Ugh sorry, I messed up the git history on the temporary |
There was a problem hiding this comment.
I'm not happy that this performs DOM changes on elements before they are cloned. How about just making these changes on the elements after they have been cloned?
Fixed issue #518: Textarea and select value isn't preserved when going back/forward