Bug Tracker

Modify

Ticket #7539 (closed bug: duplicate)

Opened 3 years ago

Last modified 2 years ago

Attribute selector equals with escaped value fails in IE8

Reported by: dennis@… Owned by: john
Priority: blocker Milestone: 1.5
Component: selector Version: 1.4.4
Keywords: Cc: rwaldron
Blocking: Blocked by:

Description

Having:

<input name="foo[bar]" type="text" />

the following:

alert($("[name=foo\\[bar\\]]").length);

alerts 0 in IE8 together with jQuery v1.4.4, while it alerted 1 correctly with v1.4.3.

This causes serious problems when operating on form elements with array-styled names.

Change History

comment:1 Changed 3 years ago by rwaldron

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

Escaped or not, attributes MUST be quoted

 http://jsfiddle.net/rwaldron/mrtCs/

comment:2 Changed 3 years ago by jitter

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:3 Changed 3 years ago by jitter

  • Priority changed from undecided to blocker
  • Status changed from reopened to open
  • Component changed from unfiled to selector

 test case

As per discussion with csnover. The escaped but unquoted selector needs to work as it's valid CSS3 selector syntax and also is correctly handled by qSA. There is no good reason for this selector suddenly failing since jQuery 1.4.4,

Last edited 3 years ago by jitter (previous) (diff)

comment:4 Changed 3 years ago by jitter

  • Milestone changed from 1.5 to 1.4.5

comment:5 Changed 3 years ago by rwaldron

  • Cc rwaldron added

comment:6 Changed 3 years ago by jitter

#7596 is a duplicate of this ticket. <-- wrong

Last edited 3 years ago by jitter (previous) (diff)

comment:7 Changed 3 years ago by jitter

#7691 is a duplicate of this ticket.

comment:8 Changed 3 years ago by jitter

#7741 is a duplicate of this ticket.

comment:9 Changed 3 years ago by jitter

#7777 is a duplicate of this ticket.

comment:10 Changed 2 years ago by jitter

#7813 is a duplicate of this ticket.

comment:11 Changed 2 years ago by ajpiano

  • Milestone changed from 1.4.5 to 1.5

comment:12 Changed 2 years ago by ajpiano

  • Milestone changed from 1.5 to 1.4.5

comment:13 Changed 2 years ago by john

  • Owner set to john
  • Status changed from open to assigned

comment:14 Changed 2 years ago by dmethvin

  • Milestone changed from 1.4.5 to 1.5

comment:15 Changed 2 years ago by john

  • Status changed from assigned to closed
  • Resolution set to duplicate

comment:16 Changed 2 years ago by john

Duplicate of #6093.

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.