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 comment:1
owner: | → pratik.shah76@gmail.com |
---|---|
status: | new → pending |
Changed November 24, 2010 04:23PM UTC by comment:2
status: | pending → new |
---|
Thank You! for quick response
I created test case using jsfiddle
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 comment:3
blockedby: | → 7533 |
---|---|
component: | unfiled → selector |
milestone: | 1.5 → 1.4.5 |
priority: | undecided → high |
status: | new → open |
Thanks for taking the time to contribute to the jQuery project by writing a bug report and providing a testcase!
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 comment:4
blockedby: | 7533 |
---|---|
resolution: | → duplicate |
status: | open → closed |
Changed January 31, 2011 05:53PM UTC by comment:6
version: | 1.4.4 → 1.5 |
---|
There wasn't a 1.4.5 release, was actually 1.5.
Changed January 31, 2011 05:54PM UTC by comment:7
milestone: | 1.4.5 → 1.5 |
---|
There was no 1.4.5 release, was actually 1.5.
Can you please reduce this to a more simplified test case? http://jsfiddle.net/