Bug Tracker

Opened 7 years ago

Closed 7 years ago

#10968 closed bug (invalid)

:hover not working on selector starting with a number

Reported by: guillaume@… Owned by:
Priority: low Milestone: None
Component: selector Version: 1.7
Keywords: Cc:
Blocked by: Blocking:

Description

$('#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 7 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.