Bug Tracker

Opened 9 years ago

Closed 9 years ago

#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:
Blocked by: Blocking:

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 (2)

comment:1 Changed 9 years ago by dmifedorenko@…

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

comment:2 Changed 9 years ago by Rick Waldron

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.