Skip to main content

Bug Tracker

Side navigation

#7495 closed bug (invalid)

Opened November 13, 2010 01:06AM UTC

Closed November 13, 2010 03:06AM UTC

Array fields name (name=sel[]) selector broken in 1.4.4

Reported by: dmifedorenko@gmail.com 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.

Attachments (0)
Change History (2)

Changed November 13, 2010 01:09AM UTC by dmifedorenko@gmail.com comment:1

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

Changed November 13, 2010 03:06AM UTC by rwaldron comment:2

resolution: → invalid
status: newclosed