Bug Tracker

Ticket #3140 (closed bug: invalid)

Opened 6 months ago

Last modified 6 months ago

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

Reported by: huangam Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.3 Component: selector
Version: 1.2.6 Keywords:
Cc: Needs: Review

Description

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

I think jQuery treat [test] as a attribute!

Attachments

Change History

Changed 6 months ago by flesler

  • status changed from new to closed
  • resolution set to invalid
  • component changed from core to selector

Check out this link.

Note: See TracTickets for help on using tickets.