Opened 10 years ago
Closed 10 years ago
#12276 closed bug (invalid)
jQuery throws an error while getting an element with an id containing a slash
Reported by: | 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).
Note: See
TracTickets for help on using
tickets.
Try properly escaping the slash: http://jsfiddle.net/tMuKt/4/