Bug Tracker

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:


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/

Change History (1)

comment:1 Changed 14 years ago by john

Resolution: fixed
Status: newclosed

Just landed a fix for this: http://github.com/jeresig/sizzle/commit/edac9ac5eab8f5ff61f68315a7638c55205f5682

Will be merging into jQuery shortly.

Note: See TracTickets for help on using tickets.