#3154 closed bug (fixed)
field name "split" breaks add(form.elements)
Reported by: | joern | Owned by: | flesler |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | core | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
A validation plugin user reported that giving a field the name-attribute "split" breaks the validation. Eventually I found out that this causes $([]).add(form.elements) to return a nested array (instead of just a flat one), eg.
[[input]] instead of [input]
(think array == jQuery object)
I have no idea whats causing that. A patch with a testcase is attached.
Attachments (1)
Change History (5)
Changed 15 years ago by
Attachment: | split-elements-testcase.diff added |
---|
comment:1 Changed 15 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 15 years ago by
Status: | new → assigned |
---|
Note: See
TracTickets for help on using
tickets.
The reason is .split is used to detect strings on makeArray. We'll look into this.