Bug Tracker

Opened 13 years ago

Closed 12 years ago

#5073 closed bug (invalid)

eq(n) has issues when spaces present

Reported by: hpoom Owned by: john
Priority: low Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: eq spaces Cc:
Blocked by: Blocking:


Code like: $( 'img:eq(1)' ).hide();

works fine, but this code: $( 'img:eq( 1 )' ).hide();

does not work. Spaces should be acceptable inside the eq to allow both eq(n) and eq( n )

In our coding guidelines it states spaces must be present between all brackets to make the code clearer, but now I have break out coding guidelines to make my eq work.

Please fix

Change History (2)

comment:1 Changed 13 years ago by dmethvin

See also #5144

comment:2 Changed 12 years ago by Rick Waldron

Priority: minorlow
Resolution: invalid
Status: newclosed

Documented selector syntax does not purport the allowance of spaces in selector strings. The space is generally regarded as descendant selector syntax

Note: See TracTickets for help on using tickets.