Bug Tracker

Opened 10 years ago

Closed 10 years ago

#11471 closed bug (invalid)

Bug with id selectors

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



This bug touches all versions of jquery. All info in jsfiddle

Change History (2)

comment:1 Changed 10 years ago by gibson042

"125" is not a valid id because it doesn't begin with a letter.

http://www.w3.org/TR/html4/types.html#type-id ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

comment:2 Changed 10 years ago by sindresorhus

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

If you need to have only numbers, prefix them, or try using *-data attributes instead.

Last edited 10 years ago by sindresorhus (previous) (diff)
Note: See TracTickets for help on using tickets.