Bug Tracker

Opened 12 years ago

Closed 12 years ago

#3456 closed bug (wontfix)

jquery does not recognise ids with forward slash in attribute

Reported by: tyler45 Owned by: flesler
Priority: minor Milestone: 1.3
Component: unfiled Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:

Description

setting up a clickable calendar with dates in 12/10/2008 format, e.g.

<td id="12/10/2008">12</td>

var date = 12/10/2008;

$('#' + date) does not select the id.

document.getElementById(date) does work

Change History (1)

comment:1 Changed 12 years ago by flesler

Resolution: wontfix
Status: newclosed

Slashes are not a valid part of ids.

http://www.w3.org/TR/html4/types.html#type-id

Note: See TracTickets for help on using tickets.