Skip to main content

Bug Tracker

Side navigation

#5329 closed bug (worksforme)

Opened October 06, 2009 08:29PM UTC

Closed February 05, 2010 08:08PM UTC

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 October 06, 2009 08:31PM UTC.

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

Change History (2)

Changed October 07, 2009 03:40AM UTC by pbcomm comment:1

You can't use that as an ID or you do need to escape chars.

http://www.w3.org/TR/xhtml1/#C_8

Changed February 05, 2010 08:08PM UTC by john comment:2

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.