Skip to main content

Bug Tracker

Side navigation

#7741 closed bug (duplicate)

Opened December 09, 2010 09:14PM UTC

Closed December 09, 2010 09:24PM UTC

Last modified December 09, 2010 09:24PM UTC

Selecting element with attribute containing [ or ] does not work since 1.4.4

Reported by: tim@pixelastic.com Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

I have an input named data[User][openid] and want to select it using jQuery.

The following code worked using jQuery 1.4.3 but does not work anymore using 1.4.4 (served from http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js)

<input name="data[User][openid]" />
<script>
// This should alert 1, but alert 0 in 1.4.4
alert($('input[name=data\\\\[User\\\\]\\\\[openid\\\\]]').length);
</script>
Attachments (0)
Change History (5)

Changed December 09, 2010 09:21PM UTC by jitter comment:1

resolution: → duplicate
status: newclosed

Changed December 09, 2010 09:21PM UTC by jitter comment:2

Duplicate of #7596.

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

resolution: duplicate
status: closedreopened

sorry had the wrong ticket on my mind

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

resolution: → duplicate
status: reopenedclosed

Actually duplicate of this one

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

Duplicate of #7539.