Skip to main content

Bug Tracker

Side navigation

#7539 closed bug (duplicate)

Opened November 17, 2010 03:09AM UTC

Closed January 17, 2011 09:44PM UTC

Last modified January 17, 2011 09:44PM UTC

Attribute selector equals with escaped value fails in IE8

Reported by: dennis@spuymore.nl Owned by: john
Priority: blocker Milestone: 1.5
Component: selector Version: 1.4.4
Keywords: Cc: rwaldron
Blocked by: Blocking:
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.

Attachments (0)
Change History (16)

Changed November 17, 2010 03:13AM UTC by rwaldron comment:1

resolution: → invalid
status: newclosed

Escaped or not, attributes MUST be quoted

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

Changed November 22, 2010 12:07PM UTC by jitter comment:2

resolution: invalid
status: closedreopened

Changed November 22, 2010 12:12PM UTC by jitter comment:3

_comment0: [http://jsfiddle.net/jitter/58hy9/ 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.1290427992386430
component: unfiledselector
priority: undecidedblocker
status: reopenedopen

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,

Changed November 22, 2010 12:13PM UTC by jitter comment:4

milestone: 1.51.4.5

Changed November 22, 2010 05:45PM UTC by rwaldron comment:5

cc: → rwaldron

Changed December 01, 2010 11:30PM UTC by jitter comment:6

_comment0: #7596 is a duplicate of this ticket.1291634822624461

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

Changed December 03, 2010 02:24PM UTC by jitter comment:7

#7691 is a duplicate of this ticket.

Changed December 09, 2010 09:24PM UTC by jitter comment:8

#7741 is a duplicate of this ticket.

Changed December 14, 2010 04:19PM UTC by jitter comment:9

#7777 is a duplicate of this ticket.

Changed December 21, 2010 12:00PM UTC by jitter comment:10

#7813 is a duplicate of this ticket.

Changed January 10, 2011 05:47PM UTC by ajpiano comment:11

milestone: 1.4.51.5

Changed January 10, 2011 05:48PM UTC by ajpiano comment:12

milestone: 1.51.4.5

Changed January 17, 2011 04:55PM UTC by john comment:13

owner: → john
status: openassigned

Changed January 17, 2011 06:48PM UTC by dmethvin comment:14

milestone: 1.4.51.5

Changed January 17, 2011 09:44PM UTC by john comment:15

resolution: → duplicate
status: assignedclosed

Changed January 17, 2011 09:44PM UTC by john comment:16

Duplicate of #6093.