Ticket #7620 (closed bug: duplicate)
issue noticed with $("*",divElement) execution
| Reported by: | pratik.shah76@… | Owned by: | pratik.shah76@… |
|---|---|---|---|
| Priority: | high | Milestone: | 1.5 |
| Component: | selector | Version: | 1.5 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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.
Change History
comment:1 Changed 2 years ago by rwaldron
- Owner set to pratik.shah76@…
- Status changed from new to pending
comment:2 Changed 2 years ago by pratik.shah76@…
- Status changed from pending to 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
comment:3 Changed 2 years ago by jitter
- Priority changed from undecided to high
- Status changed from new to open
- Component changed from unfiled to selector
- Blocked by 7533 added
- Milestone changed from 1.5 to 1.4.5
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.
comment:4 Changed 2 years ago by jitter
- Status changed from open to closed
- Resolution set to duplicate
- Blocked by 7533 removed
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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