Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12276 closed bug (invalid)

jQuery throws an error while getting an element with an id containing a slash

Reported by: nicofrand@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:

Description

Although the HTML5 specification allows to use any non-space characters in an id attribute, jQuery can not select an element with an id like "selector-/test" (whereas a simple document.getElementById can).

http://jsfiddle.net/tMuKt/2/

Change History (1)

comment:1 Changed 7 years ago by gibson042

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.