Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12368 closed bug (invalid)

Sloppy element ":" selectors throwing a syntax error in version 1.8

Reported by: dev@… Owned by:
Priority: undecided Milestone: 1.8
Component: selector Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:

Description

For the following HTML:

...

selector 'form#some_form_id' works fine, but selector 'form:#some_form_id' throws the following error in jQuery 1.8 (Chrome 21, latest stable):

Uncaught Error: Syntax error, unrecognized expression: :#some_form_id

I'm now sure how standard (or unstandard) the ":" notation is, but it worked until jQuery 1.7.2, and now it doesn't work.

Thanks dev@…

Change History (3)

comment:1 Changed 7 years ago by anonymous

Somehow trac dropped the HTML. Adding it again:

For the following HTML: <form id="some_form_id> ... </form

Rest as follows above.

comment:2 Changed 7 years ago by timmywil

Component: unfiledselector
Milestone: None1.8
Resolution: invalid
Status: newclosed

Yes, that selector is invalid and Sizzle now correctly throws an error.

comment:3 in reply to:  1 Changed 7 years ago by anonymous

Replying to anonymous: For the following HTML: <form id="some_form_id"> ... </form>

Note: See TracTickets for help on using tickets.