Skip to main content

Bug Tracker

Side navigation

#7620 closed bug (duplicate)

Opened November 24, 2010 03:47PM UTC

Closed November 25, 2010 12:25AM UTC

Last modified January 31, 2011 05:54PM UTC

issue noticed with $("*",divElement) execution

Reported by: pratik.shah76@gmail.com Owned by: pratik.shah76@gmail.com
Priority: high Milestone: 1.5
Component: selector Version: 1.5
Keywords: Cc:
Blocked by: Blocking:
Description

Issue is in executing $(“*”,div) method. It is not traversing each inner domain elements of div if div has certain pattern of Id.

Visit http://jsbin.com/equge3 link for the test application I created.

You can notice that ‘spouse’ dom elements are not traversing if div has id with pattern “FE12[FE23]” but parent dom elements worked fine if div has id with pattern “FE12[0]”

It means it is expecting numeric characters inside brackets in current release of jQuery 1.4.4.

Above example works fine in jQuery 1.4.2.

Attachments (0)
Change History (7)

Changed November 24, 2010 04:10PM UTC by rwaldron comment:1

owner: → pratik.shah76@gmail.com
status: newpending

Can you please reduce this to a more simplified test case? http://jsfiddle.net/

Changed November 24, 2010 04:23PM UTC by pratik.shah76@gmail.com comment:2

status: pendingnew

Thank You! for quick response

I created test case using jsfiddle

http://jsfiddle.net/5Jr8R/2/

In my test case two separate div elements and want to modify id of each div.

Here are logical steps I am following:

  • select each div
  • modify div id with new one by appending [FEIEI2C90] for the first one and [0] for the second one
  • traverse each element to modify each inner element

Changed November 24, 2010 09:48PM UTC by jitter comment:3

blockedby: → 7533
component: unfiledselector
milestone: 1.51.4.5
priority: undecidedhigh
status: newopen

Thanks for taking the time to contribute to the jQuery project by writing a bug report and providing a testcase!

reduced test case

jQuery has sometimes issues when the id attribute contains meta characters. Here it is triggered as jQuery internally uses the present id attribute to speed up the search. Check on #7533 which (once fixed) should also fix this bug.

Changed November 25, 2010 12:25AM UTC by jitter comment:4

blockedby: 7533
resolution: → duplicate
status: openclosed

Changed November 25, 2010 12:25AM UTC by jitter comment:5

Duplicate of #7533.

Changed January 31, 2011 05:53PM UTC by john comment:6

version: 1.4.41.5

There wasn't a 1.4.5 release, was actually 1.5.

Changed January 31, 2011 05:54PM UTC by john comment:7

milestone: 1.4.51.5

There was no 1.4.5 release, was actually 1.5.