Modify ↓
Ticket #989 (closed bug: invalid)
#-starting IDs are not found in the page
| Reported by: | dialtone | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.2 |
| Component: | core | Version: | 1.1.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$('<li id="#foo">hi</li>').appendTo("body"); $("##foo")
Doesn't find the just added li item.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

# is not a valid id starter: When defining fragment identifiers to be backward-compatible, only strings matching the pattern [A-Za-z][A-Za-z0-9:_.-]* should be used
see: http://www.w3.org/TR/html4/types.html#h-6.2