Skip to main content

Bug Tracker

Side navigation

#12368 closed bug (invalid)

Opened August 21, 2012 08:08PM UTC

Closed August 21, 2012 08:24PM UTC

Last modified August 21, 2012 08:53PM UTC

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

Reported by: dev@sergiokas.com Owned by:
Priority: undecided Milestone: 1.8
Component: selector Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:
Description

For the following HTML:

#!html
<form id="some_form_id">
...
</form>

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@sergiokas.com

Attachments (0)
Change History (3)

Changed August 21, 2012 08:09PM UTC by anonymous comment:1

Somehow trac dropped the HTML. Adding it again:

For the following HTML:

<form id="some_form_id> ... </form

Rest as follows above.

Changed August 21, 2012 08:24PM UTC by timmywil comment:2

component: unfiledselector
milestone: None1.8
resolution: → invalid
status: newclosed

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

Changed August 21, 2012 08:53PM UTC by anonymous comment:3

Replying to [comment:1 anonymous]:

For the following HTML:

<form id="some_form_id"> ... </form>