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: |
Description
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
comment:2 Changed 12 years ago by
Priority: | minor → low |
---|---|
Resolution: | → invalid |
Status: | new → closed |
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.
See also #5144