Side navigation
#1771 closed bug (invalid)
Opened October 03, 2007 11:16PM UTC
Closed October 14, 2007 09:04PM UTC
$( '*', context ) selects METAs from outside of context
Reported by: | aercolino | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | meta | Cc: | |
Blocked by: | Blocking: |
Description
In IE and in FF, jQuery 1.2.1 selects METAs, if they are added after page load by means of document.createElement
Here is a test that shows the problem: hover on $( '*' )...
http://noteslog.com/personal/projects/jquery/selections/test3.html
See also: http://dev.jquery.com/ticket/1631
Attachments (0)
Change History (4)
Changed October 04, 2007 08:49PM UTC by comment:1
Changed October 04, 2007 10:40PM UTC by comment:2
Great job, davidserduke !! My mistake.
I'm going not to post again so late at night again... I promise.
Changed October 05, 2007 03:56AM UTC by comment:3
No problem of course.
Changed October 14, 2007 09:04PM UTC by comment:4
resolution: | → invalid |
---|---|
status: | new → closed |
Thanks David for spotting this!
I'm afraid this might be a bug in your test case.
The process in the test case appears to be:
1. set b to all elements
2. set p to only elements in .playground
3. set bnp to be elements that are in b and removing those in the playground
4. set hover functions
5. add meta tag (note this will NOT be in bnp)
6. on hover, set s to all elements
7. set t to s removing bnp (that doesn't include the new meta)
8. t now includes everything in the playground plus the new meta
I believe if you move that meta creation to before the creation of b, p, and bnp then it will work as you expect.
Skpye must be adding the meta tag at some point after jQuery is ready (perhaps window.onload?).
So as near as I can tell at this point, this is not a jQuery bug.