Skip to main content

Bug Tracker

Side navigation

#1390 closed bug (worksforme)

Opened July 12, 2007 03:50PM UTC

Closed July 15, 2007 02:06PM UTC

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?

Attachments (0)
Change History (2)

Changed July 12, 2007 06:52PM UTC by mdmadph comment:1

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

Changed July 15, 2007 02:06PM UTC by john comment:2

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.