Opened 14 years ago
Closed 14 years ago
#3831 closed bug (fixed)
jQuery 1.3 doesn't accept spaces in attributes brackets selectors
Reported by: | brizbane | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | selector | Version: | 1.2.6 |
Keywords: | spaces, selector | Cc: | |
Blocked by: | Blocking: |
Description
1.2.6 accepts spaces anywhere within the bracket selectors: $('a[ name ]') or $('a[name = "foo"]') or $('a[ name*="foo" ]')
1.3 does not allow any spaces at all, erroring out with "Syntax error, unrecognized expression: [ name ]". I suspect many scripts will break.
Here's a test page (combined with another issue): http://jquery.glyphix.com/1.3/
Note: See
TracTickets for help on using
tickets.
Just landed a fix for this: http://github.com/jeresig/sizzle/commit/edac9ac5eab8f5ff61f68315a7638c55205f5682
Will be merging into jQuery shortly.