Bug Tracker

Modify

Ticket #1390 (closed bug: worksforme)

Opened 6 years ago

Last modified 6 years ago

Problem with ID reference if ID has period

Reported by: mdmadph Owned by:
Priority: minor Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: Cc:
Blocking: Blocked by:

Description

Example:

I have an image with the id of "img1.1".

I cannot reference this image with $("#img1.1"), but document.getElementById("img1.1") works. Am I missing something?

Change History

comment:1 Changed 6 years ago by mdmadph

Is it something to do with jQuery thinking that ".1" means a class?

comment:2 Changed 6 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone set to 1.1.4

That's correct. In 1.1.3 you can now do: $("#img1
.1") to escape the special character.

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.