jQuery Adapter val() function handles multiple elements incorrectly
My understanding is that if you have a jQuery object that contains multiple form elements, when you call val() it will return the first element's value. (I haven't found anything in the documentation that says this specifically, but it seems to be the case)
The jQuery adapter loops through each of the wrapped elements calling val(), replacing the returned result each time. This ends up returning the last element's value.
I'm using an older version of the code, but a quick comparison of the trunk's source indicates that it has the same problem.
Change History (9)
Keywords: |
jquery removed
|
Status: |
new →
confirmed
|
Version: |
3.4.1 →
3.1
|
Owner: |
set to Piotr Jasiun
|
Status: |
confirmed →
review
|
Milestone: |
→ CKEditor 4.2
|
Status: |
review →
assigned
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
I'm attaching test case file. I'm not sure if this is what @mridgway meant but if I understood the description correctly then the problem does not exist anymore.
Can anyone confirm, give his point of view?