Bug Tracker

Opened 10 years ago

Closed 10 years ago

#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:
Blocked by: Blocking:

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 (1)

test.zip (22.0 KB) - added by i 10 years ago.
test page showing difference # and [id=] and (un)escaped ?

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by i

Attachment: test.zip added

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

comment:1 Changed 10 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

comment:2 Changed 10 years ago by john

Milestone: 1.4
Resolution: worksforme
Status: newclosed
Version: 1.3.2

Uhhhh. Wow. You may want to consider changing up your IDs a little bit.

Note: See TracTickets for help on using tickets.