Bug Tracker

Modify

Ticket #7495 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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:1 Changed 3 years ago by dmifedorenko@…

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

comment:2 Changed 3 years ago by rwaldron

  • Status changed from new to closed
  • Resolution set to invalid

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.