Bug Tracker

Opened 11 years ago

Closed 11 years ago

#10968 closed bug (invalid)

:hover not working on selector starting with a number

Reported by: [email protected] Owned by:
Priority: low Milestone: None
Component: selector Version: 1.7
Keywords: Cc:
Blocked by: Blocking:


$('#30foo:hover') is throwing an error : "Syntax error, unrecognized expression: hover"

whereas $('#30foo').filter(':hover') is working.

this also bug for $('#12') or any other digit.

Change History (1)

comment:1 Changed 11 years ago by sindresorhus

Component: unfiledselector
Priority: undecidedlow
Resolution: invalid
Status: newclosed

ID's aren't allowed to start with a number: http://mathiasbynens.be/notes/html5-id-class

Note: See TracTickets for help on using tickets.