Ticket #5329 (closed bug: worksforme)
missing special char "?" in "Special characters in selectors" on selectors page
| Reported by: | i | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | docs | Version: | |
| Keywords: | incomplete list | Cc: | |
| Blocking: | Blocked by: |
Description
documentation typo:
location: on bottom of http://docs.jquery.com/Selectors just beneath "The full list of characters that need to be escaped: "
the question mark is missing. also there seems to be a slight inconsistency...
works:
$("[id='http\:\/\/domain\.net\/index\.php?var\=3']") (specific attribute, plain ?)
$("[id='http\:\/\/domain\.net\/index\.php\?var\=3']") (specific attribute, escaped ?)
$("#http\:\/\/domain\.net\/index\.php\?var\=3") (escaped ?)
fails:
$("#http\:\/\/domain\.net\/index\.php?var\=3") (plain ?)
Attachments
Change History
comment:1 Changed 4 years ago by pbcomm
You can't use that as an ID or you do need to escape chars. http://www.w3.org/TR/xhtml1/#C_8
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


test page showing difference # and [id=] and (un)escaped ?