Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3140 closed bug (invalid)

jQuery fails when element's id include character"[]"

Reported by: huangam Owned by:
Priority: major Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:

Description

Here is an element: <div id="test[test]"></div>, but $("#test[test]").length === 0

I think jQuery treat [test] as a attribute!

Change History (1)

comment:1 Changed 11 years ago by flesler

Component: coreselector
Resolution: invalid
Status: newclosed

Check out this link.

Note: See TracTickets for help on using tickets.