Modify ↓
Ticket #7495 (closed bug: invalid)
Array fields name (name=sel[]) selector broken in 1.4.4
| Reported by: | dmifedorenko@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.5 |
| Component: | unfiled | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Code $('input[name=sel[]]') work fine from 1.3.x, but broken in 1.4.4
Test case width 1.4.4 alerts 0, but with 1.4.3 alerts 2:
<input name="sel[]" value="1"/>
<input name="sel[]" value="2"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
$(function(){
alert($('input[name=sel[]]').length);
})
</script>
I can reproduce bug on Windows 7, in FF 3.6.12, Chrome 7, Opera 10.63. In IE8, where is no bug, it works fine.
Change History
comment:2 Changed 3 years ago by rwaldron
- Status changed from new to closed
- Resolution set to invalid
Quotes are mandatory:
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Test case in jsFiddle - http://jsfiddle.net/kSTN9/