jQuery: The Write Less, Do More JavaScript Library

Ticket #154 (reopened 1)

Opened 2 years ago

Last modified 1 year ago

Britney

Reported by: edbrannin@… Assigned to: anonymous
Type: 1 Priority: 1
Milestone: 1 Component: 1
Version: 1 Keywords: Britney
Cc: Britney Needs:

Description

I'm using JQuery 1.0 on a webpage with elements named 'A', 'A.1', 'A.2', 'A.2.1', etc.

I just tried to run $('#A.1') in Firebug, and it gave me a stack trace 6 levels deep.

Thinking it might be looking for 'A' elements with the class '1', I also tried:

    $('A').addClass('1')
    $('A.1')

...but I got the same 6-level stack trace:

m has no properties jquery-1.0.js (line 691)
anonymous jquery-1.0.js (line 691)
anonymous jquery-1.0.js (line 597)
jQuery jquery-1.0.js (line 45)
jQuery jquery-1.0.js (line 33)
null javascript: with ... (line 1)
null javascript: with ... (line 1)

Attachments

Change History

Changed 2 years ago by john

  • status changed from new to closed
  • version deleted
  • resolution set to wontfix

Set to the tune of "I Will Survive":

First I thought it was a bug
I was petrified
Kept thinking I could never live
with that bug in dot find
But then I read back through the spec
starting with one and nine is wrong
I grew strong
I learned how to carry on
and so go back
and fix your classes
and it will all be ok
just like in your CSSes.
I should improve the stupid error
I should doc for all to see
If I had known for just one second
you'd have trouble with "A dot 3".

Changed 2 years ago by Britney

  • cc changed from edbrannin@gmail.com to Britney
  • component set to 1
  • summary changed from "m has no properties" after $('#A.1') to Britney
  • priority set to 1
  • version set to 1
  • milestone set to 1
  • keywords changed from "" to Britney
  • type set to 1
Note: See TracTickets for help on using tickets.