#7539 closed bug (duplicate)
Attribute selector equals with escaped value fails in IE8
Reported by: | Owned by: | john | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.5 |
Component: | selector | Version: | 1.4.4 |
Keywords: | Cc: | Rick Waldron | |
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.
Change History (16)
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 13 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:3 Changed 13 years ago by
Component: | unfiled → selector |
---|---|
Priority: | undecided → blocker |
Status: | reopened → open |
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,
comment:4 Changed 13 years ago by
Milestone: | 1.5 → 1.4.5 |
---|
comment:5 Changed 13 years ago by
Cc: | Rick Waldron added |
---|
comment:11 Changed 12 years ago by
Milestone: | 1.4.5 → 1.5 |
---|
comment:12 Changed 12 years ago by
Milestone: | 1.5 → 1.4.5 |
---|
comment:13 Changed 12 years ago by
Owner: | set to john |
---|---|
Status: | open → assigned |
comment:14 Changed 12 years ago by
Milestone: | 1.4.5 → 1.5 |
---|
comment:15 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Escaped or not, attributes MUST be quoted
http://jsfiddle.net/rwaldron/mrtCs/