Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1390 closed bug (worksforme)

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

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 (2)

comment:1 Changed 13 years ago by mdmadph

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

comment:2 Changed 13 years ago by john

Milestone: 1.1.4
Resolution: worksforme
Status: newclosed

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

Note: See TracTickets for help on using tickets.