#12368 closed bug (invalid)
Sloppy element ":" selectors throwing a syntax error in version 1.8
Reported by: | 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 [email protected]…
Change History (3)
comment:1 follow-up: 3 Changed 10 years ago by
comment:2 Changed 10 years ago by
Component: | unfiled → selector |
---|---|
Milestone: | None → 1.8 |
Resolution: | → invalid |
Status: | new → closed |
Yes, that selector is invalid and Sizzle now correctly throws an error.
comment:3 Changed 10 years ago by
Replying to anonymous:
For the following HTML:
<form id="some_form_id"> ... </form>
Note: See
TracTickets for help on using
tickets.
Somehow trac dropped the HTML. Adding it again:
For the following HTML:
<form id="some_form_id> ... </form
Rest as follows above.