Bug Tracker

Modify

Ticket #3456 (closed bug: wontfix)

Opened 5 years ago

Last modified 5 years ago

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

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

comment:1 Changed 5 years ago by flesler

  • Status changed from new to closed
  • Resolution set to wontfix

Slashes are not a valid part of ids.

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

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.