Bug Tracker

Modify

Ticket #5329 (closed bug: worksforme)

Opened 4 years ago

Last modified 3 years ago

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

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

Change History

Changed 4 years ago by i

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

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

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Version 1.3.2 deleted
  • Resolution set to worksforme
  • Milestone 1.4 deleted

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.