Side navigation
#5073 closed bug (invalid)
Opened August 19, 2009 01:13PM UTC
Closed October 27, 2010 10:40PM UTC
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
Attachments (0)
Change History (2)
Changed October 03, 2009 01:06AM UTC by comment:1
Changed October 27, 2010 10:40PM UTC by comment:2
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
See also #5144